f=lambda x:print('%03d'%x) c=0 f(c) while input()=='locked':c+=1;f(c)