#include using namespace std; #include #include #include #include #include template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } #define rep(i,n) for (int i = 0; i < (n); ++i) typedef long long ll; typedef unsigned long long ull; using P=pair; const int INF=1001001001; const ll INFL=1e18; const int mod=998244353; int diff(int h,int n){ return h-(n-h); } int query(int k){ cout<<"?"<<" "<>s; return s; } void out(int l,int r){ cout<<"!"<<" "<>n; int st=diff(query(1),1),lst=diff(query(n-1),n-1); if(st==lst){ out(2,n-1); } int l=1,r=n-1; while(1){ int mid=(l+r)/2; int c=query(mid); int d=diff(c,mid); if(d==0){ if(mid0&&st>0)){l=mid;} else{r=mid;} } } int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); solve(); return 0; }