#include using namespace std; int main(){ bool unlocked = false; for (int i = 0; i <= 9; i++){ for (int j = 0; j <= 9; j++){ for (int k = 0; k <= 9; k++){ if (!unlocked){ cout << i << j << k << endl; string S; cin >> S; if (S == "unlocked"){ unlocked = true; } } } } } }