#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "NO";
    return 0;
  }
  cout << "YES" << '\n';
  vector<long long> v(2 * n);
  long long index = 0;
  long long num = 1;
  for (long long i = 0; i < n; i++) {
    v[index] = num;
    num++;
    index = (index + n) % (2 * n);
    v[index] = num;
    num++;
    index--;
  }
  for (long long i = 0; i < 2 * n; i++) {
    cout << v[i] << " ";
  }
  return 0;
}
