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