#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  if (n % 2 == 0)
    cout << "NO"
         << "\n";
  else {
    long long a[2 * n];
    a[0] = 1;
    a[2 * n - 1] = 2 * n;
    bool f = true;
    long long j = n, k = 1, d = 2, cnt = 0;
    for (long long i = 0; i < (2 * n) - 2; i++) {
      if (f) {
        a[j] = d;
        cnt++;
        j++;
        d++;
        if (cnt == 2) {
          f = false;
          cnt = 0;
        }
      } else {
        a[k] = d;
        cnt++;
        k++;
        d++;
        if (cnt == 2) {
          f = true;
          cnt = 0;
        }
      }
    }
    cout << "YES"
         << "\n";
    for (long long i = 0; i < 2 * n; i++) cout << a[i] << " ";
    cout << "\n";
  }
  return 0;
}
