#include using namespace std; int main(){ int t; cin >> t; for(int i=0;i> n; if(n == 1) cout << 1 << endl; else cout << 0 << endl; } }