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