#include #define rep(i,a,n) for (int i = a;i < n;i++) using namespace std; int main() { rep(i, 0, 1000) { printf("%03d\n", i); string s; cin >> s; if (s == "unlocked") return 0; } }