#include using namespace std; class judge{ public: int angry = 385; int mod = 17; string query(int x){ if( x < angry && x%mod != 0){ return "safe"; } else{ return "out"; } } }; int main(){ int ok = 0,ng = 1000; //judge jud; while(ok != ng-1){ cout << "in" << endl; int check = (ok+ng)/2; cout<< "? " << check << endl; string answer; cin >> answer; //answer = jud.query(check); if(answer == "safe"){ ok = check; continue; } else{ cout << "? " << check+1 << endl; string ans; cin >> ans; //ans = jud.query(check+1); if(ans == "safe"){ ok = check+1; } else{ ng = check; } } } cout << "! "<