#include int main() { for(int i = 0; i < 1000; i++) { printf("%03d\n", i); std::string r; std::cin >> r; if(r == "unlocked") break; } }