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 n = int(input()) if n == 0: print(1) else: print(*sorted([mul(*i) for i in product(*f2(f1(10 ** n)))]), sep="\n")