N = int(input()) n = 10 ** N ans = [] for i in range(N + 1): for j in range(N + 1): ans.append(2 ** i * 5 ** j) ans.sort() ans = [str(i) for i in ans] answer = "\n".join(ans) print(answer)