#include #include #include using namespace std; int main(){ cin.tie(0); ios::sync_with_stdio(false); int N; int c; vector ans; bool f[501]; cin>>N; c=N; for(int i=1;i<=N;i++) f[i]=true; while(c>1){ vector k; for(int i=1;i<=N;i++) if(f[i]) k.push_back(i); while(k.size()>1){ cout<<"? "; vector tmp; for(int i=0;i>r; if(tmp[i*2]==0&&tmp[i*2+1]==0) continue; else if(tmp[i*2+1]==0) k.push_back(tmp[i*2]); else if(tmp[i*2]==0) k.push_back(tmp[i*2+1]); else if(r=="=") k.push_back(tmp[i*2]); else if(r=="<") k.push_back(tmp[i*2]); else if(r==">") k.push_back(tmp[i*2+1]); } } ans.push_back(k[0]); f[k[0]]=false; c--; } cout<<"! "; for(int i=0;i