#include using namespace std; int main(void){ int t; cin>>t; while(t--){ int n; cin>>n; cout<<(n==1?1:0)<