#int(input()) #map(int, input().split()) #list(map(int, input().split())) N = int(input()) if N == 3 or N == 5: print(-1) elif N == 1: print(1) elif N % 2 == 0: print(*list(range(2, N+1, 2))) else: a = [3, 6, 2, 4] + list(range(8, N, 2)) print(*a)