N=int(input()) if N%2==0: print(*[a for a in range(2,N+1,2)]) else: if N==1: print(1) elif N in (3,5): print(-1) else: print(*[3]+[a for a in range(6,N+1,2)]+[2,4])