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