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