import sys INF = float('inf') MOD = 10**9 + 7 def solve(): def II(): return int(sys.stdin.readline()) def LI(): return list(map(int, sys.stdin.readline().split())) def LC(): return list(input()) def IC(): return [int(c) for c in input()] def MI(): return map(int, sys.stdin.readline().split()) N = II() if(N==1): print(1) exit() if(N==3 or N==5): print(-1) exit() if(N%2 == 0): for n in range(2,N+1,2): print(n," ",sep="",end="") print() else: for n in range(2,N+1,2): if(n == 6): continue print(n," ",sep="",end="") print(6,3) return solve()