#include <bits/stdc++.h>
using namespace std;
int N, arr[1000000];
set<int> st;
int main() {
  cin >> N;
  if (N % 2 == 0) {
    cout << "NO";
    return 0;
  }
  for (int i = 1, b = 1, e = N * 2; i <= N; b += 2, e -= 2)
    arr[i] = b, i++, arr[i] = e, i++;
  for (int i = N + 1; i <= N * 2;) {
    arr[i] = arr[i - N] + 1;
    i++;
    arr[i] = arr[i - N] - 1;
    i++;
  }
  cout << "YES\n";
  for (int i = 1; i <= 2 * N; i++) cout << arr[i] << ' ';
  cout << '\n';
}
