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