n = int(input()) if n%2 == 0: ans = [] for i in range(1,n//2+1): ans.append(str(2*i)) print(ans) elif n <= 5: print(-1) else: p = n-1 while p%2 == 0: p //= 2 if p != 1: ans = [] for i in range(1,n//2+1): ans.append(str(2*i)) ans.append(p) else: ans = [3,6] for i in range(1,n//2+1): if i != 3: ans.append(str(2*i)) print(*ans)