#include #define rep(i, ss, ee) for (int i = ss; i < ee; ++i) using namespace std; int N; string s; void solve() { rep(i, 1000, 2000) { cout << to_string(i).substr(1) << endl; cin >> s; if (s == "unlocked") return; } } int main() { ios::sync_with_stdio(false); cin.tie(0); solve(); }