N = int(input()) if N == 2: print('No') exit() print('Yes') if N & 1: print(*range(1, N + 1)) else: print(1, *range(3, N + 1), 2)