#include using namespace std; int main(){ cin.tie(nullptr); ios_base::sync_with_stdio(false); int t; cin >> t; while (t--)[&]{ int N; cin >> N; cout << (N == 1) << endl; }(); }