#yuki1528 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) else: t=[2,4] for i in range(8,n+1,2): t.append(i) t.append(6) if n%2==1: t.append(3) print(*t)