#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n == 1) {
    cout << "YES" << endl;
    cout << 1 << " " << 2 << endl;
  } else {
    if (n % 2 == 0)
      cout << "NO" << endl;
    else {
      vector<int> v(2 * n + 1, 0);
      v[1] = 1;
      v[n + 1] = 2;
      v[2 * n] = 4;
      v[n] = 3;
      for (int i = 2; i <= (n / 2) + 1; i++) {
        if (i % 2) {
          v[i] = v[i - 1] + 3;
        } else
          v[i] = v[i - 1] + 5;
        if (i % 2) {
          v[i + n] = v[i] + 1;
        } else {
          v[i + n] = v[i] - 1;
        }
      }
      for (int i = n - 1, count = 1; i >= 0; i--, count++) {
        if (v[i] == 0) {
          if (count % 2)
            v[i] = v[i + 1] + 5;
          else
            v[i] = v[i + 1] + 3;
        } else {
          break;
        }
      }
      for (int i = (2 * n) - 1, count = 1; i >= 0; i--, count++) {
        if (v[i] == 0) {
          if (count % 2)
            v[i] = v[i + 1] + 3;
          else
            v[i] = v[i + 1] + 5;
        } else {
          break;
        }
      }
      cout << "YES" << endl;
      for (int i = 1; i <= 2 * n; i++) cout << v[i] << " ";
    }
  }
  return 0;
}
