#include using namespace std; int main(){ int t;cin>>t; for(int i = 0; t > i; i++){ int x;cin>>x; cout << 1-x << endl; } }