#include #include #include #include #include using namespace std; int main(void){ int key = 0; cout << setfill('0') << right << setw(3) << key << endl; string s; while(1){ cin >> s; if(s == "locked"){ key++; cout << setfill('0') << right << setw(3) << key << endl; }else{ break; } } return 0; }