#include #include #include int main() { std::string s; for (int i = 0; i < 1000; ++i) { std::cout << std::setfill('0') << std::right << std::setw(3) << i << std::endl; std::cin >> s; if (s == "unlocked") break; } }