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