// No.304 鍵(1) // https://yukicoder.me/problems/no/304a // #include #include using namespace std; int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); for (auto n = 0; n < 1000; ++n) { cout << setw(3) << setfill('0') << n << flush << endl; string res; cin >> res; if (res == "unlocked") break; } }