#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int n;
  cin >> n;
  if (n & 1) {
    vector<int> v1, v2;
    bool flag = true;
    for (int i = 1; i <= 2 * n; i++) {
      if (flag) {
        v1.push_back(i);
        flag = !flag;
      } else {
        v2.push_back(i);
        flag = !flag;
      }
    }
    for (int i = 1; i < n; i += 2) {
      swap(v1[i], v2[i]);
    }
    cout << "YES" << endl;
    for (int i = 0; i < n; i++) cout << v1[i] << " ";
    for (int i = 0; i < n; i++) cout << v2[i] << " ";
  } else
    cout << "NO" << endl;
  return 0;
}
