#include <bits/stdc++.h>
using namespace std;
const int64_t M = 2e5 + 5;
int64_t n, a[M];
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  if (n % 2 == 0) return cout << "NO", 0;
  cout << "YES\n";
  int64_t cnt = 1;
  for (int64_t i = 1; i <= n; i++) {
    if (i & 1) {
      a[i] = cnt++;
      a[i + n] = cnt++;
    } else {
      a[i + n] = cnt++;
      a[i] = cnt++;
    }
  }
  for (int64_t i = 1; i <= 2 * n; i++) cout << a[i] << " ";
  return 0;
}
