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