#include <bits/stdc++.h>
using namespace std;
const long long p = 1e9 + 7;
const long long N = 1e5 + 10;
const long long inf = 1e17 + 10;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  long long arr[2 * n + 1];
  if (n % 2 == 0) return cout << "NO", 0;
  cout << "YES\n";
  long long c = 1;
  for (long long i = 1; i <= n; i++) {
    if (i % 2 == 1) {
      arr[i] = c;
      arr[i + n] = c + 1;
      c += 2;
    } else {
      arr[i] = c + 1;
      arr[i + n] = c;
      c += 2;
    }
  }
  for (long long i = 1; i <= 2 * n; i++) cout << arr[i] << " ";
}
