#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:32000000")
#pragma GCC optimize("O3")
using namespace std;
int n;
int ans[200005];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin.sync_with_stdio(0);
  cout.sync_with_stdio(0);
  cout.precision(8);
  srand(time(0));
  cin >> n;
  if (n % 2 == 0) {
    cout << "NO";
    return 0;
  }
  int val = 1;
  for (int i = 1; i <= n; i++, val += 2) {
    if (i & 1) {
      ans[i] = val;
      ans[n + i] = val + 1;
    } else {
      ans[i] = val + 1;
      ans[n + i] = val;
    }
  }
  cout << "YES\n";
  for (int i = 1; i <= 2 * n; i++) {
    cout << ans[i] << " ";
  }
  return 0;
}
