#include using namespace std; int main(){ string ans = "000"; for(int i=0; i<10; i++) for(int j=0; j<10; j++) for(int k=0; k<10; k++){ ans[0] = i+'0'; ans[1] = j+'0'; ans[2] = k+'0'; cout << ans << endl; string tmp; cin >> tmp; if(tmp == "unlocked"){ return 0; } } return 0; }