#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  cin >> a;
  if (a % 2 == 0) {
    cout << "NO";
  } else {
    if (a == 1) {
      cout << "YES\n";
      cout << "1"
           << " "
           << "2";
    } else {
      cout << "YES\n";
      int x = 0;
      for (int cc = 1; cc <= a; cc++) {
        if (cc % 2 != 0) {
          x++;
          cout << x << " ";
        } else {
          x += 3;
          cout << x << " ";
        }
      }
      cout << "2"
           << " ";
      int y = 2;
      for (int tt = 1; tt <= a - 1; tt++) {
        if (tt % 2 != 0) {
          y++;
          cout << y << " ";
        } else {
          y += 3;
          cout << y << " ";
        }
      }
    }
  }
}
