#include <bits/stdc++.h>
using namespace std;
const int MAXn = 2e5 + 100;
int a[MAXn], n, k;
signed main() {
  cin >> n;
  if (n % 2 == 0) return cout << "NO\n", 0;
  cout << "YES\n", 0;
  for (int i = 0; i < n; i += 2) a[i] = 4 * (k++) + 1;
  k = 0;
  for (int i = n; i < 2 * n; i += 2) a[i] = 4 * (k++) + 2;
  for (int i = 0; i < n; ++i)
    if (!a[i]) a[i] = a[i + 1] - 1;
  for (int i = n; i < 2 * n; ++i)
    if (!a[i]) a[i] = a[i - 1] + 1;
  for (int i = 0; i < 2 * n; ++i) cout << a[i] << " ";
  return cout << endl, 0;
}
