#include <bits/stdc++.h>
using namespace std;
int n, a[200012];
void input() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> n;
  if (n % 2 == 0) {
    cout << "NO";
  } else {
    cout << "YES\n";
    int dem = 1;
    for (int i = 1; i <= 2 * n; i += 2) {
      a[dem] = i;
      a[n + dem] = i + 1;
      if (dem % 2) {
        swap(a[dem], a[n + dem]);
      }
      dem++;
    }
    for (int i = 1; i <= 2 * n; i++) {
      cout << a[i] << " ";
    }
  }
}
int main() {
  input();
  return 0;
}
