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