#include #include int main() { std::string str; int i = 0; do { printf("%03d\n", i++); std::cin >> str; } while (str == "locked"); return 0; }