#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int n;
  cin >> n;
  if (n % 2 == 0)
    cout << "NO";
  else {
    long long int a[2 * n];
    a[0] = 1;
    a[n] = 2;
    long long int t = 3;
    for (long long int i = 2; i < (2 * n - 1); i += 2) {
      a[i] = t;
      t += 2;
    }
    long long int k = 4;
    for (long long int i = n + 2; i < (2 * n); i += 2) {
      a[i] = k;
      k += 2;
    }
    k = 2 * n;
    for (long long int i = n - 2; i >= 1; i -= 2) {
      a[i] = k;
      k -= 2;
    }
    cout << "YES"
         << "\n";
    for (long long int i = 0; i < (2 * n); i++) {
      cout << a[i] << ' ';
    }
  }
  return 0;
}
