#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:36777216")
using namespace std;
const int MAXN = 110;
long long mod = 1e9 + 7;
long long inf = 1e9;
long double eps = 1e-7;
double pi = acos(-1);
ifstream in("input.txt");
ofstream out("output.txt");
int main() {
  int n;
  cin >> n;
  if (n % 2 == 0)
    cout << "NO";
  else {
    vector<int> ans(2 * n);
    int t = 1;
    for (int i = 0; i < n; i++) {
      if (i % 2 == 0) {
        ans[i] = t;
        ans[i + n] = t + 1;
      } else {
        ans[i] = t + 1;
        ans[i + n] = t;
      }
      t += 2;
    }
    cout << "YES\n";
    for (int i = 0; i < 2 * n; i++) {
      cout << ans[i] << " ";
    }
  }
  return 0;
}
