n = int(input()) # 偶数並べるだけでOK? if n <= 2: print(1) exit() if n == 3 or n == 5: print(-1) exit() if n == 4: print(*[2, 4]) exit() ans = [3, 6] for i in range(2, n + 1, 2): if i != 6: ans.append(i) nn = (n - 1) // 2 + 1 print(*ans[:nn + 1])