c=0 while 1: print('%03d'%c) if input()=='unlocked':break c+=1