#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  if (!(n & 1)) {
    cout << "NO" << '\n';
    return 0;
  }
  cout << "YES" << '\n';
  if (n == 1) {
    cout << "1 2" << '\n';
    return 0;
  }
  long long i = 4;
  cout << 1 << " ";
  while (i < 2 * n) {
    cout << i << " " << i + 1 << " ";
    i += 4;
  }
  i = 2;
  while (i < 2 * n) {
    cout << i << " " << i + 1 << " ";
    i += 4;
  }
  cout << 2 * n;
}
