import sys sys.setrecursionlimit(10**7) def I(): return int(sys.stdin.readline().rstrip()) def MI(): return map(int,sys.stdin.readline().rstrip().split()) def LI(): return list(map(int,sys.stdin.readline().rstrip().split())) def LI2(): return list(map(int,sys.stdin.readline().rstrip())) def S(): return sys.stdin.readline().rstrip() def LS(): return list(sys.stdin.readline().rstrip().split()) def LS2(): return list(sys.stdin.readline().rstrip()) N = I() if N % 2 == 0: ANS = [i for i in range(2,N+1,2)] print(*ANS) else: if N == 1: print(1) elif N == 3 or N == 5: print(-1) else: ANS = [3,6,2,4] cur = 8 for _ in range((N+1)//2-4): ANS.append(cur) cur += 2 print(*ANS)