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