from itertools import product from operator import mul def f1(n): fct = [] b, e = 2, 0 while b * b <= n: while n % b == 0: n = n // b e = e + 1 if e > 0: fct.append((b, e)) b, e = b + 1, 0 if n > 1: fct.append((n, 1)) return fct def f2(fcts): l = [] for f, n in fcts: l.append([f ** i for i in range(n+1)]) return l fcts = f2(f1(10 ** int(input()))) print(*sorted([mul(*i) for i in product(*fcts)]), sep="\n")