#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n % 2 == 0)
    cout << "NO" << endl;
  else {
    cout << "YES" << endl;
    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 << endl;
  }
  return 0;
}
