#include #include #include #include using namespace std; int main() { int n = 0; cout.fill('0'); while(true) { string s; cin >> s; if(s == "unlocked") break; cout << setw(3) << n++ << endl; cout.flush(); } return 0; }