#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n;
  bool alternate = false;
  cin >> n;
  if ((n % 2) == 0) {
    cout << "NO\n";
    return 0;
  }
  cout << "YES\n";
  for (int x = 1; x <= 2 * n; x += 2) {
    if (alternate)
      cout << x + 1 << ' ';
    else
      cout << x << ' ';
    alternate = !alternate;
  }
  alternate = false;
  for (int x = 2; x <= 2 * n; x += 2) {
    if (alternate)
      cout << x - 1;
    else
      cout << x;
    if (x + 2 <= 2 * n) cout << ' ';
    alternate = !alternate;
  }
  return 0;
}
