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