#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "NO";
  } else {
    cout << "YES" << endl;
    int flag1 = 0, flag2 = 0;
    int k = n * 2;
    for (long long i = 1; i <= n; i++) {
      if (i % 2 == 0) {
        cout << k - flag2 << " ";
        flag2 += 2;
      }
      if (i % 2 == 1) {
        cout << i << " ";
      }
    }
    flag1 = 0;
    flag2 = 0;
    for (long long i = 2; i <= (n + 1); i++) {
      if (i % 2 == 1) {
        cout << k - (flag2 + 1) << " ";
        flag2 += 2;
      }
      if (i % 2 == 0) {
        cout << i << " ";
      }
    }
  }
}
