#include using namespace std; int main(){ int tt;scanf("%d",&tt); for (;tt--;){ int x;scanf("%d",&x); printf("%d\n",x^1); } }