#include #include using namespace std; #define anyfill(n,s) setw(n) << setfill(s) int main(){ cout << "000" << endl; int n = 0; while(true){ string s;cin>>s; if(s == "unlocked"){ return 0; } n++; cout << anyfill(3,'0') << n << endl; } }