import itertools num = "1234567890" for lst in itertools.product(num, repeat = 3): print("".join(lst)) s = input() if s == "unlocked": break