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