#include using namespace std; int main(){ string s; 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; cin >> s; if(s=="unlocked") return 0; } } } return 0; }