n=int(input()) mid=list(range(1,n+1)) if n==1: print(-1) exit() if n==2: print(1,6,2,4,3,5) exit() if n==5: print(11,8,13,5,15,1,2,3,4,6,10,9,12,7,14) exit() m=sum(mid) A=list(range(n+1,3*n+1,2)) B=list(range(n+2,3*n+1,2)) if m%2==1: mid[-1],A[0]=A[0],mid[-1] for i in reversed(range(n)): if mid[i]%2==0: A[0],A[i]=A[i],A[0] B[0],B[i]=B[i],B[0] key=i break ax=[] for i in range(n): if i==key and m%2==1: ax.append(mid[i]*2) else: ax.append(mid[i]) ax.sort() ay=sum(ax) ay//=2 S={0} zz=0 for i in ax: if zz