#include #include #include using namespace std; int main() { std::ios::sync_with_stdio(false); std::cin.tie(0); string s; cout.fill('0'); for (int i = 0; i < 1000; ++i) { cout << setw(3) << i << endl; cin >> s; if (s == "locked") { continue; } else { return 0; } } }