#include <bits/stdc++.h>
using namespace std;
template <class T>
ostream& operator<<(ostream& os, vector<T> V) {
  for (auto v : V) os << v << " ";
  return os;
}
template <class T>
ostream& operator<<(ostream& os, set<T> S) {
  os << "{ ";
  for (auto s : S) os << s << ", ";
  return os << "}";
}
template <class L, class R>
ostream& operator<<(ostream& os, pair<L, R> P) {
  return os << "(" << P.first << "," << P.second << ")";
}
template <class L, class R>
ostream& operator<<(ostream& os, map<L, R> M) {
  os << "{ ";
  for (auto m : M) os << "(" << m.first << ":" << m.second << ") ";
  return os << "}";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  if (n % 2 == 0) {
    cout << "NO\n";
  } else {
    vector<int> ans(2 * n);
    for (int i = 1; i <= 2 * n; i += 2) {
      ans[i - 1] = i;
    }
    int pos = n;
    for (int i = 2; i <= 2 * n; i += 2) {
      ans[pos] = i;
      pos += 2;
      if (pos > 2 * n) {
        pos = 1;
      }
    }
    cout << "YES\n";
    cout << ans << "\n";
  }
}
