#include using namespace std; typedef long long ll; #define rep(i,l,r) for(int i=(l);i<(r);++i) vector dx={-1,0,1,0}; vector dy={0,1,0,-1}; int sp=99; int main(){ int n,t; cin>>n>>t; vector a(n),b(n),c(n),d(n); rep(i,0,n) cin>>a[i]>>b[i]>>c[i]>>d[i]; random_device rd; mt19937 eng(rd()); uniform_int_distribution sd1(2,13); uniform_int_distribution sd2(0,3); int p=0; rep(i,0,sp){ int u,v; cin>>u>>v; cout<<2<>u>>v; if(u==-1) return 0; if(u<1e7/sqrt(v) || p>20) cout<<3<