#pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #include #include using namespace std; using namespace atcoder; using ll=long long; using ld=long double; using T=tuple; void IO(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); } int main(){ IO(); ll t; cin>>t; while(t--){ ll n; cin>>n; if(n%2!=0){ cout<<0<