n = int(input()) if n <= 2: print(n) elif n in (3, 5): print(-1) elif n % 2 == 0: print(*[x for x in range(2, n+1, 2)]) else: ans = [3, 6] + [x for x in range(2, n, 2) if n != 6] print(*ans)