import random t=sorted(["{0:0>3}".format(i)for i in range(1000)],key=lambda _:random.random()) for u in t: print u if len(raw_input())==8:break