#include <bits/stdc++.h> using namespace std; int main(){ long long n; while(n != 1) { cout << n << " "; n %= 2; } return 0; }