#include using namespace std; main() { int L=0,R=1000; while(R-L>2) { int M=(L+R)/2; string a,b; cout<<"? "<>a; cout<<"? "<>b; if(a=="out"&&b=="out")R=M+1; else if(a=="out"&&b=="safe")L=M+1; else if(a=="safe"&&b=="out")L=M; else L=M+1; } while(true) { cout<<"? "<>a; if(a=="out")break; L++; } cout<