#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long int n;
  cin >> n;
  if (n % 2 == 0)
    cout << "NO";
  else {
    cout << "YES" << endl;
    cout << 1 << " ";
    for (long long int i = 1, j = 2; i < n and j < n; i = i + 2, j = j + 2) {
      cout << n + i << " ";
      if (n - j == 1)
        cout << 2 * n - 1 << " ";
      else
        cout << n - j << " ";
    }
    cout << 2 << " ";
    for (long long int i = 0, j = 1; i < n and j < n; i += 2, j += 2) {
      cout << n + i << " ";
      if (n - j == 2)
        cout << 2 * n << " ";
      else
        cout << n - j << " ";
    }
  }
}
