#include #include #include using namespace std; int main() { int key; string rep; for (key = 0; key < 1000; key++) { cout << setfill('0') << setw(3) << key << endl; cin >> rep; if(rep == "unlocked") { return 0; } } return 0; }