#include #include #include #include #include #include #include using namespace std; #define ll long long const double eps=1e-8; const ll inf=1e9; const ll mod=1e9+7; const int maxn=1e5+10; int main() { int t,n; scanf("%d",&t); while (t--) { scanf("%d",&n); printf("%d\n",1^n); } return 0; }