#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t = 1;
  while (t--) {
    long long int n, m, x, y, z, k, sum = 0, c1 = 0, c2 = 0, ans = 0;
    cin >> n;
    if (n % 2) {
      cout << "YES" << endl;
      cout << 1 << " ";
      x = 1;
      for (int i = 1; i < ((2 * n) / 2); i += 2) {
        cout << x + 3 << " " << x + 4 << " ";
        x += 4;
      }
      x = 2;
      for (int i = 1; i < ((2 * n) / 2); i += 2) {
        cout << x << " " << x + 1 << " ";
        x += 4;
      }
      cout << (2 * n);
      cout << endl;
    } else {
      cout << "NO" << endl;
    }
  }
}
