#include using namespace std; using ll=long long; using ull=unsigned long long; using pll=pair; using tll=tuple; using ld=long double; const ll INF=(1ll<<60); #define rep(i,n) for (ll i=0;i<(ll)(n);i++) #define replr(i,l,r) for (ll i=(ll)(l);i<(ll)(r);i++) #define all(v) v.begin(),v.end() #define len(v) ((ll)v.size()) template inline bool chmin(T &a,T b){ if(a>b){ a=b; return true; } return false; } template inline bool chmax(T &a,T b){ if(a> l >> r; ll sz=4; rep(i,1< now(sz,0); rep(j,sz){ if(i&(1<> st(2); rep(a,2){ rep(b,2){ rep(c,2){ rep(d,2){ map mp; mp[{0,0}]=a; mp[{0,1}]=b; mp[{1,0}]=c; mp[{1,1}]=d; ll k=now[0]; for(ll j=1;j> res; if(st[0].contains(res)) cout << "0\n"; else cout << "1\n"; cout.flush(); } } }