#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using iii = tuple<int, int, int>;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int N;
  cin >> N;
  if (N % 2 == 0) {
    cout << "NO";
    exit(0);
  };
  vector<int> A(2 * N);
  for (int i = 0; i < N; i++) {
    if (i % 2 == 0)
      A[i] = i * 2 + 1, A[i + N] = i * 2 + 1 + 1;
    else
      A[i] = (N - i) * 2, A[i + N] = (N - i) * 2 - 1;
  }
  cout << "YES\n";
  for (int i = 0; i < 2 * N; i++) cout << A[i] << ' ';
}
