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