for i in range(1000): print('{:03}'.format(i)) if input()=="unlocked": break