n = int(input()) if n == 1: print(1) elif n == 3 or n == 5: print(-1) elif n >= 7 and n % 2 == 1: num = (n + 1) // 2 num -= 4 ans = [3, 6, 2, 4] ans += [2 * (i + 4) for i in range(num)] print(*ans) else: num = (n + 1) // 2 ans = [2 * (i + 1) for i in range(num)] print(*ans)