n = 1000 for i in range(n): print("0" * (3 - len(str(i))) + str(i)) if input() == "unlocked": break