#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
const int M = 1e5 + 5;
int main() {
  ios_base::sync_with_stdio(false);
  int n, i;
  cin >> n;
  if (n % 2 == 0) {
    cout << "NO\n";
    return 0;
  }
  int ans[3 * N];
  for (i = 1; i <= n; i++) {
    if (i % 2 == 1) {
      ans[i] = 2 * i - 1;
      ans[i + n] = 2 * i;
    } else {
      ans[i] = 2 * i;
      ans[i + n] = 2 * i - 1;
    }
  }
  cout << "YES\n";
  for (i = 1; i <= 2 * n; i++) cout << ans[i] << " ";
  return 0;
}
