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