#include <bits/stdc++.h>
using namespace std;
int ans[200010];
int main() {
  int n;
  cin >> n;
  if (n & 1) {
    puts("YES");
    bool f = true;
    for (int i = 0; i < n; i++) {
      if (f)
        ans[i + n] = (i + 1) * 2, ans[i] = (i + 1) * 2 - 1;
      else
        ans[i] = (i + 1) * 2, ans[i + n] = (i + 1) * 2 - 1;
      f = !f;
    }
    for (int i = 0; i < (n * 2); i++) {
      cout << ans[i] << ' ';
    }
  } else
    puts("NO");
}
