#include using namespace std; int main(void){ for(int i = 0; i <= 9; i++){ for(int j = 0; j <= 9; j++){ for(int k = 0; k <= 9; k++){ string str = ""; str += i + '0'; str += j + '0'; str += k + '0'; cout << str << endl; string result; cin >> result; if(result == "unlocked"){ goto END; } } } } END: return 0; }