n = int(input()) ans = [] for t in range(n + 1): for f in range(n + 1): ans.append((2 ** t) * (5 ** f)) print(*sorted(ans), sep = "\n")