k = 0 while True: print("{0:03d}".format(k)) if str(input()) == "unlocked": break else: k += 1