#include #include #include #include using namespace std; int main() { string s; long int n=0; long int atari=0; int t,prevt; cout << "0000000000" << endl; cin >> prevt >> s; if(s == "unlocked") return 0; n++; for(int i=0;i<10;i++){ n = pow(10,(double)i); for(int j=1;j<10;j++){ cout << setw(10) << setfill('0') << n << endl; cin >> t >> s; if(s == "unlocked") return 0; if(t > prevt){ atari += j*pow(10,(double)i); break; }else if(t> t >> s; return 0; }