#include #include #include #include #include #include #include #include #include #include #include #include //#include "toollib.h" #define INT_MAX 2147483647 #define Loop(i, n) for(int i = 0; i < (int)n; i++) #pragma warning (disable:4018) using namespace std; int main() { string s="000"; string judge; while (true) { cout << s << endl; cin >> judge; if (judge == "unlocked") break; if (s[2] != 9) s[2]++; else if (s[1] != 9) { s[1]++; s[2] = '0'; } else { s[0]++; s[1] = 0; s[2] = 0; } } return 0; }