#include #include using namespace std; int main(int argc, char* argv[]) { int n = 0; string s; for (int n = 0; n <= 999; n++) { cout << setfill('0') << setw(3); cout << n << endl << flush; cin >> s; if (s == "unlocked") break; } return 0; }