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