N=int(input()) L=list() if N==3 or N==5: print(-1) exit() if N==1: print(1) exit() if N%2==0: for i in range(N//2): L.append(2*(i+1)) print(*L) else: for i in range(N//2): if 2*(i+1)!=6: L.append(2*(i+1)) L.append(6) L.append(3) print(*L)