#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  if (!(n & 1)) {
    cout << "NO";
    return 0;
  }
  int x = 1, c = 0;
  cout << "YES\n";
  int a[n], b[n];
  for (int i = 0; i < n; i++) {
    c++;
    if (c & 1) {
      a[i] = x;
      x++;
      b[i] = x;
      x++;
    } else {
      b[i] = x;
      x++;
      a[i] = x;
      x++;
    }
  }
  for (int i = 0; i < n; i++) cout << a[i] << " ";
  for (int i = 0; i < n; i++) cout << b[i] << " ";
}
