N = int(input()) ans = [2 ** (N - 2)] now = 2 ** (N - 1) for _ in range(N // 2): now //= 2 copy = now // 2 t = ans[-1] while now <= t:now *= 3 ans.append(now) while copy <= now:copy *= 5 ans.append(copy) print(*ans[:N])