#include using namespace std; const int N = 100005; int n; void solve() { scanf("%d",&n); printf("%d\n",n^1); } int main() { int T; scanf("%d",&T); while(T--) solve(); }