n = int(input()) if n == 3 or n == 5: print(-1) exit(0) m = (n + 1) // 2 if m == 1: print(1) elif m == 2: print(2, 4) elif m == 3: print(2, 4, 6) else: print(*([3, 6, 2, 4] + [(i + 4) * 2 for i in range(m - 4)]))