n = int(input()) N = 10**n ls = [] a = 0 b = 0 while True: if N%(2**a) == 0: ls.append(int((2**a))) ls.append(int(N/(2**a))) a += 1 if N < 2**a: break while True: if N%(5**b) == 0: ls.append(int((5**b))) ls.append(int((N/5**b))) b += 1 if N < 5**b: break ls = list(set(ls)) ls.sort() for i in ls: print(i)