n=int(input()) m=n//2 if n in(3,5): a=[-1] else: a=[2*i for i in range(1,m+1)] if n%2==1 and n>1: a=[3]+a[2:]+a[:2] if n==1: a=1, print(*a)