#include using namespace std; int main(void){ int N; cin >> N; vector pigeon(N+2,-1); int a=0; int z=N+1; int left=0; int right=N+1; pigeon[left]=0; pigeon[right]=N; for(int i=0;i<10;i++){ int mid=(left+right)/2; int mid2=pigeon[left]+pigeon[right]; if(mid<1)mid=1; if(mid>N)mid=N; cout << "? " << mid << endl; cin >> pigeon[mid]; if(z-a!=1){ if(pigeon[mid-1]==pigeon[mid]){ a=mid-1; z=mid; }else if(pigeon[mid]==pigeon[mid+1]){ a=mid; z=mid+1; } } if(pigeon[mid]*2