#include //ios::sync_with_stdio(false); //cin.tie(0); using namespace std; typedef long long ll; typedef pair pii; typedef pair ppii; typedef pair pipi; typedef pair pll; typedef pair plpl; typedef tuple tl; ll mod=1000000007; ll mod2=998244353; ll inf=1000000000000000000; double pi=2*acos(0); #define rep(i,m,n) for(int i=m;i=m;i--) ll lmax(ll a,ll b){ if(a pri; bool prijud(ll n){ for(int i=2;i*i<=n;i++){ if(n%i==0)return false; } return true; } int main(){ ios::sync_with_stdio(false); cin.tie(0); int n;cin>>n; int d[n+1]; fill(d,d+n+1,-1); int cnt=0; int win=0; for(;;){ if(cnt==n-1)break; int now=0; rep(i,1,n+1){ if(d[i]>0)continue; if(now==0)now=i; else{ cout<<"? "<>y; win=y; if(y==now)d[i]=now; else d[now]=i; now=0; cnt++; } } } vector v; rep(i,1,n+1){ if(d[i]==win)v.push_back(i); } int t[v.size()]; fill(t,t+v.size(),0); rep(i,0,v.size()-1){ rep(j,i+1,v.size()){ cout<<"? "<>y; if(v[i]==y)t[i]++; else t[j]++; } } int num; int ma=-1; rep(i,0,v.size()){ if(ma