#include <bits/stdc++.h>
using namespace std;
string decbin(int n) {
  int binaryNum[32], x;
  string s;
  int i = 0;
  while (n > 0) {
    binaryNum[i] = n % 2;
    n = n / 2;
    i++;
  }
  for (int j = i - 1; j >= 0; j--) {
    x = 0;
    s += char(binaryNum[j] + '0');
    x++;
  }
  return s;
}
long long powi(long long x, long long y) {
  long long z = 1;
  for (int i = 0; i < y; i++) z *= x;
  return z;
}
void solve() {
  int n;
  cin >> n;
  if (n % 2 == 0)
    cout << "NO" << endl;
  else {
    cout << "YES" << endl;
    cout << 1 << " ";
    int x = 1;
    for (int i = 0; i < n - 1; i++) {
      if (i % 2 == 0)
        x += 3;
      else
        x += 1;
      cout << x << " ";
    }
    cout << 2 << " ";
    x = 2;
    for (int i = 0; i < n - 1; i++) {
      if (i % 2 == 0)
        x += 1;
      else
        x += 3;
      cout << x << " ";
    }
  }
}
int main() {
  std::ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  solve();
  return 0;
}
