#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(0);
  int n;
  cin >> n;
  if (n & 1 ^ 1) {
    cout << "NO" << endl;
    return 0;
  }
  std::vector<int> res(2 * n + 1);
  int flag = 0;
  int k = 1, j = n + 1;
  for (int i = 1; i < 2 * n + 1; i += 2) {
    if (flag) {
      res[k++] = i + 1;
      res[j++] = i;
      flag = 0;
    } else {
      res[j++] = i + 1;
      res[k++] = i;
      flag = 1;
    }
  }
  cout << "YES" << endl;
  for (int i = 1; i < 2 * n + 1; i++) cout << res[i] << ' ';
  cout << endl;
  return 0;
}
