#include #include #include void solve() { for (int i = 0; i < 1000; ++i) { std::cout << std::setw(3) << std::setfill('0') << i << std::endl; std::string s; std::cin >> s; if (s == "unlocked") break; } } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }