#include using namespace std; #define REP(i,n) for(int i=0; i<(int)(n); i++) int main() { ios_base::sync_with_stdio(0); cin.tie(0); REP (i, 10) REP (j, 10) REP (k, 10) { cout << i << j << k << endl; string s; cin >> s; if (s == "unlocked") return 0; } return 0; }