n = int(input()) ans = [] for i in range(-(-n//2)): ans.append((i+1)*2) if n == 1: ans = [1] elif n &1: if n < 7: ans = [-1] else: ans = [3] + ans ans[1],ans[2],ans[3] = 6,2,4 ans.pop() print(*ans)