N=int(input()) if N==1 or N==2: print(1) elif N==3 or N==5: print(-1) elif N%2==0: L=[str(2*i) for i in range(1,int(N/2)+1)] print(" ".join(L)) else: L=["3","6","2","4"] for i in range(4,int(N/2)+1): L.append(str(2*i)) print(" ".join(L))