#include <bits/stdc++.h>
using namespace std;
const int Z = 1e5 + 111;
const int inf = 1e9 + 111;
const long long llinf = 1e18 + 111;
int n;
int main() {
  cin >> n;
  if (n % 2) {
    cout << "YES\n";
    for (int i = 1; i <= n; i++) {
      cout << i * 2 - i % 2 << " ";
    }
    for (int i = 1; i <= n; i++) {
      cout << i * 2 + i % 2 - 1 << " ";
    }
  } else {
    cout << "NO";
  }
}
