N = int(input()) if N == 1: print(1) exit() if N % 2 == 0: print(*[(i+1)*2 for i in range(N//2)]) else: if N == 3 or N == 5: print(-1) else: ll = [3,6,2,4] for j in range(-(-N//2)-4): ll.append(2*(j+4)) print(*ll)