#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "NO" << '\n';
  } else {
    cout << "YES" << '\n';
    cout << 1 << ' ';
    for (int i = 4; i < 2 * n; i += 4) {
      cout << i << ' ' << i + 1 << ' ';
    }
    for (int i = 2; i < 2 * n; i += 4) {
      cout << i << ' ' << i + 1 << ' ';
    }
    cout << 2 * n << '\n';
  }
}
