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