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