#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "NO" << endl;
    return 0;
  }
  cout << "YES" << endl;
  int dp[(2 * n) + 2];
  int idx1 = 0, idx2 = n;
  dp[0] = 1;
  idx1++;
  bool flag = false;
  int cnt = 2;
  while (idx2 < (2 * n)) {
    if (!flag) {
      dp[idx2++] = cnt++;
      dp[idx2++] = cnt++;
      flag = true;
    } else {
      dp[idx1++] = cnt++;
      dp[idx1++] = cnt++;
      flag = false;
    }
  }
  for (int i = 0; i < (2 * n); i++) {
    cout << dp[i] << " ";
  }
  cout << endl;
}
