from itertools import product as p n=10**(int(input())) l=[1] for i in range(2,1+int(n**0.5)): while n%i==0: l.append(i) n=n//i if n:l.append(n) s=set() for i in p([0,1],repeat=len(l)): v=1 for j in map(lambda x,y:x*y,i,l): if j:v*=j s.add(v) for i in sorted(s): print(i)