#include using namespace std; string f(int x) { string res = to_string(x); while(res.size() < 3) res = '0' + res; return res; } int main() { string res; for(int i = 999; ; i++) { cout << f(i % 1000) << endl; cin >> res; if(res == "unlocked") break; } return 0; }