zlist=[x for x in range(100000, 1000000)]
alist=[]
for z in zlist:
    if z%72==0:
        z=str(z)
        alist.append(z)
list=[x for x in alist if "1" in x]
list=[x for x in list if "2" in x]
list=[x for x in list if "3" not in x]
list=[x for x in list if "4" not in x]
list=[x for x in list if "5" not in x]
list=[x for x in list if "6" not in x]
list=[x for x in list if "7" not in x]
list=[x for x in list if "8" not in x]
list=[x for x in list if "9" not in x]
list=[x for x in list if "0" not in x]
for result in list:
    print(result)
