#include using namespace std; #define REP(i, n) for(int i = 0; i < n; i++) int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); REP(i, 1000) { cout << setfill('0') << setw(3); cout << i << endl; string s; cin >> s; if (s == "unlocked") return 0; } }