#include using namespace std; int main(){ int N,Q;cin>>N>>Q; queue mq,Mq; for(int i=1;i<=N;i+=2){ cout<<"? "<>f; if(f==-1)return 0; if(f){ Mq.push(i+1); mq.push(i); } else{ Mq.push(i); mq.push(i+1); } } while(Mq.size()>1){ queue tmq,tMq; while(Mq.size()>1){ auto a=Mq.front(); Mq.pop(); auto b=Mq.front(); Mq.pop(); cout<<"? "<>f; if(f){ tMq.push(b); } else{ tMq.push(a); } } while(tMq.size()){ Mq.push(tMq.front()); tMq.pop(); } while(mq.size()>1){ auto a=mq.front(); mq.pop(); auto b=mq.front(); mq.pop(); cout<<"? "<>f; if(f==-1)return 0; if(f){ tmq.push(a); } else{ tmq.push(b); } } while(tmq.size()){ mq.push(tmq.front()); tmq.pop(); } } cout<<"! "<