N = int(input()) ans = list(range(2, N+1, 2)) if N % 2 == 0: print(*ans) elif N >= 7: print(3, 6, 2, 4, *ans[3:]) else: print(-1)