#include #include #include using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); string S; int n = 0; cout << setw(3) << setfill('0'); do { cout << n; cin >> S; n++; } while (S != "unlocked"); return 0; }