#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 5;
int a[maxn];
int main() {
  int n;
  cin >> n;
  if (n % 2 == 0)
    cout << "NO\n";
  else {
    cout << "YES\n";
    a[1] = 1;
    a[n + 1] = 2;
    int cnt = 3;
    int sign = 1;
    for (int i = 2; i <= n; i++) {
      if (sign) {
        a[n + i] = cnt++;
        a[i] = cnt++;
        sign = 0;
      } else {
        sign = 1;
        a[i] = cnt++;
        a[n + i] = cnt++;
      }
    }
    for (int i = 1; i <= 2 * n; i++) cout << a[i] << " ";
  }
}
