#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long int n;
  cin >> n;
  if (n % 2 == 0) return cout << "NO", 0;
  long long int arr[2 * n + 1];
  long long int a = 1, b = n + 1;
  for (long long int i = 1; i < 2 * n + 1; i += 2) {
    if (a % 2) {
      arr[a++] = i;
      arr[b++] = i + 1;
    } else {
      arr[b++] = i;
      arr[a++] = i + 1;
    }
  }
  cout << "YES\n";
  for (long long int i = 1; i < 2 * n + 1; i++) cout << arr[i] << " ";
}
