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