#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  if (n & 1) {
    vector<long long> vec(2 * n + 1);
    long long p = 0, k = 0;
    for (long long i = 1; i <= n; i++) {
      if (!p) {
        vec[i] = ++k;
        vec[i + n] = ++k;
        vec[i + n + 1] = ++k;
        p = 1;
      } else {
        vec[i] = ++k;
        p = 0;
      }
    }
    cout << "YES"
         << "\n";
    for (long long i = 1; i <= 2 * n; i++) cout << vec[i] << " ";
  } else {
    cout << "NO"
         << "\n";
  }
  return 0;
}
