#include <bits/stdc++.h>
using namespace std;
int n, i;
int main() {
  cin >> n;
  if (n % 2 == 0) return cout << "NO", 0;
  for (cout << "YES\n"; i < n + n; i++)
    cout << (i < n ? i + i + i % 2 : (i - n) * 2 + i % 2) + 1 << " ";
}
