N = int(input()) ans = [] for i in range(N+1): for j in range(N+1): ans.append(2**i * 5**j) for n in sorted(ans): print(n)