#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int y = 2 * n;
  if (((y - 2) / 2) & 1) {
    cout << "NO";
    return 0;
  }
  vector<int> v(2 * n, 0);
  v[0] = 1;
  v[n] = 2;
  bool f = true, f2 = true;
  for (int i = 1; i < n; i++)
    if (f)
      v[i] = v[i - 1] + 3, f = false;
    else
      v[i] = v[i - 1] + 1, f = true;
  for (int i = n + 1; i < (2 * n); i++)
    if (f2)
      v[i] = v[i - 1] + 1, f2 = false;
    else
      v[i] = v[i - 1] + 3, f2 = true;
  cout << "YES\n";
  for (auto i : v) cout << i << ' ';
}
