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