#B n=int(input()) if n==1: print(-1) elif n==2: print(2) elif n==3: print(-1) elif n==5: print(-1) a=int(n//2) a+=1 s=[] if n%2!=0: for i in range(1,a): c=2*i s.append(c) else: for i in range(1,a): d=2*i s.append(c) s.remove(6) s.append(6) s.append(3) s=[str(p) for p in s] s=' '.join(s) t = s.replace(' ', ' ') print(t)