#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; constexpr int INF = 1001001001; // constexpr int mod = 1000000007; constexpr int mod = 998244353; template inline bool chmax(T& x, T y){ if(x < y){ x = y; return true; } return false; } template inline bool chmin(T& x, T y){ if(x > y){ x = y; return true; } return false; } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int lb = 0, ub = 1001; while(ub - lb > 1){ int mid = (lb + ub) / 2; string s, t; cout << "? " << mid << endl; cin >> s; cout << "? " << mid + 1 << endl; cin >> t; if(s == "out" && t == "out") ub = mid; else if(s == "out") lb = mid + 1; else if(t == "out") lb = mid; else lb = mid + 1; } cout << "! " << lb << endl; return 0; }