n = int(input()) if n in {1, 2}: exit(print(1)) if n in {3, 5}: exit(print(-1)) ans = [] for i in range(1, n // 2 + 1): ans.append(2 * i) if n % 2: tmp = ans[-1] while tmp % 2 == 0: tmp //= 2 ans.append(tmp) print(*ans)