import math n=int(input()) if n%2==0: print(*list(range(2,n+1,2))) elif n>=6: print(*([3,6,2,4]+list(range(8,n+1,2)))) else: print(-1)