1
 2
 3
 4
 5
 6
 7
 8
 9
10
#include<iostream>

int main() {
int n;
srand(time(0));
std::cin >> n;
std::cout << n%2 << " ";
for (int i = 2; i < n; i++) std::cout << rand() % 2 << " ";
std::cout << 1;
}