#include <bits/stdc++.h>
using namespace std;
int arr[200100];
int main() {
  ios::sync_with_stdio(false);
  int n, i, t;
  cin >> n;
  if (n & 1) {
    for (i = 1; i < n; i += 2) {
      t = 2 * i - 1;
      arr[i] = t;
      arr[i + n] = t + 1;
      arr[i + 1] = t + 3;
      arr[i + 1 + n] = t + 2;
    }
    arr[n] = 2 * n - 1;
    arr[2 * n] = 2 * n;
    cout << "YES\n";
    for (i = 1; i <= 2 * n - 1; ++i) cout << arr[i] << ' ';
    cout << arr[2 * n];
  } else {
    cout << "NO";
  }
  return 0;
}
