#include #include #include #include #include #include #include #include #include #include #include #define REP(i, n) for(int i = 0;i < n;i++) #define FOR(i,m,n) for(int i = m; i < n; i++) #define FOREACH(i, n) for (__typeof((n).begin()) i = (n).begin(); i != (n).end(); ++i) #define ALL(c) (c).begin(), (c).end() #define SIZE(v) ((int)v.size()) #define INF INT_MAX/2 #define pb push_back #define mp make_pair using namespace std; typedef long long llong; const int dx[6] = {1, -1, 1, 0, -1, 0}; const int dy[6] = {1, -1, 0, 1, 0, -1}; inline bool valid(int x, int w){return 0 < x && x <= w;} llong r, l, mid, n; bool flag; int main(){ flag=false; r=1e9; l=1; int i=0; while(l+1100) return -1; mid=(l+r)/2; cout << "? " << mid << endl; cin >> n; if(n==1) l=mid; else r=mid; i++; } mid=(l+r)/2; cout << "! " << mid << endl; }