N = int(input()) if N==1 or N==2: print(1) elif N==3 or N==5: print(-1) elif N==4: print(2,4) elif N==6: print(2,4,6) else: ANS = [3,6] for i in range(2,N-1,2): if i==6: continue ANS.append(i) print(*ANS)