def is_ok(a): if a % 2 == 0 and a // 2 % 2 == 0: return True N = int(input()) ans1 = [i for i in range(1, N + 1, 2)] if is_ok(N): ans1.append(N) print(*ans1)