#include using namespace std; int main(){ int t,n; cin>>t; while(t--){ cin>>n; cout<<(1^n)<