#include <bits/stdc++.h>
using namespace std;
int log(int x) { return 32 - __builtin_clz(x) - 1; }
int log(long long x) { return 64 - __builtin_clzll(x) - 1; }
int n;
int main() {
  cin >> n;
  if (n % 2 == 0) {
    cout << "NO";
    return 0;
  }
  cout << "YES\n";
  bool add = false;
  for (int i = 1; i < 2 * n; i += 2, add = !add) cout << i + add << " ";
  add = true;
  for (int i = 1; i < 2 * n; i += 2, add = !add) cout << i + add << " ";
}
