# import sys; input = sys.stdin.buffer.readline # sys.setrecursionlimit(10**7) from collections import defaultdict con = 10 ** 9 + 7; INF = float("inf") def getlist(): return list(map(int, input().split())) #処理内容 def main(): N = int(input()) l2 = [1] l5 = [1] for i in range(1, N + 1): l2.append(2 ** i) l5.append(5 ** i) ans = [] for i in range(N + 1): for j in range(N + 1): ans.append(l2[i] * l5[j]) ans.sort() for i in ans: print(i) if __name__ == '__main__': main()