#include <bits/stdc++.h>
const int INF = 0x3f3f3f3f;
using namespace std;
string s;
int n, sum;
int a[250], b[250], temp[1000];
int an, bn;
int main() {
  cin >> n;
  if (n == 1) {
    puts("YES");
    cout << "1 2" << endl;
  } else if (n % 2 == 0)
    puts("NO");
  else if (n % 2) {
    puts("YES");
    sum = 0;
    for (int i = 1; i <= n; ++i) {
      if (i % 2)
        sum += 1;
      else
        sum += 3;
      cout << sum << " ";
    }
    sum = -1;
    for (int i = 1; i <= n; ++i) {
      if (i % 2)
        sum += 3;
      else
        sum += 1;
      cout << sum << " ";
    }
  }
  return 0;
}
