#include <bits/stdc++.h>
using namespace std;
const long long N = 2e5 + 5;
long long v[N];
signed main() {
  long long n;
  cin >> n;
  long long p = 2 * n;
  long long x = p * (p + 1);
  if (x % 4 == 0)
    cout << "NO\n";
  else {
    cout << "YES\n";
    for (long long i = 1; i <= 2 * n; i++) v[i] = i;
    for (long long i = 1; i <= n; i++) {
      if (i & 1) {
        cout << 2 * i - 1 << " ";
        v[2 * i - 1] = 0;
      } else {
        cout << 2 * i << " ";
        v[2 * i] = 0;
      }
    }
    for (long long i = 1; i <= 2 * n; i++)
      if (v[i] != 0) cout << v[i] << " ";
  }
}
