#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  if (n <= 2) {
    cout << "No" << endl;
    return 0;
  }
  vector<long long> a, b;
  for (long long i = 1; i <= n; i++) {
    if (i % 2 == 1) {
      a.push_back(i);
    } else
      b.push_back(i);
  }
  cout << "Yes" << endl;
  cout << b.size();
  for (long long i = 0; i < b.size(); i++) {
    cout << " " << b[i];
  }
  cout << endl;
  cout << a.size();
  for (long long i = 0; i < a.size(); i++) {
    cout << " " << a[i];
  }
  cout << endl;
}
