//12252024832524 #include #include #include #include #define Min(x,y) (xy?x:y) using namespace std; typedef long long LL; const int MAXN = 100000; int Read() { int x1 = 0,f1 = 1;char c1 = getchar(); while(c1 > '9' || c1 < '0'){if(c1 == '-')f1 = -1;c1 = getchar();} while(c1 >= '0' && c1 <= '9'){x1 = (x1*10) + (c1^48);c1 = getchar();} return x1 * f1; } void Put(int x) { if(x > 9) Put(x/10); putchar(x%10^48); } int main() { // freopen(".in","r",stdin); // freopen(".out","w",stdout); for(int T = Read(); T ;-- T) { Put(1^Read()); putchar('\n'); } return 0; }