#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  if (t % 2 == 0) {
    cout << "NO";
  } else {
    cout << "YES"
         << "\n";
    int arr[t];
    int dup[t];
    int check = 1;
    int j = 0;
    for (int i = 1; i <= 2 * t; i += 2) {
      if (check == 1) {
        arr[j] = i;
        dup[j] = i + 1;
        check = 0;
      } else {
        dup[j] = i;
        arr[j] = i + 1;
        check = 1;
      }
      j++;
    }
    for (int i = 0; i < t; i++) {
      cout << arr[i] << " ";
    }
    for (int i = 0; i < t; i++) {
      cout << dup[i] << " ";
    }
  }
  return 0;
}
