#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  bool b = false;
  cin >> n;
  long long int sum = 0, a;
  for (int i = 1; i <= n; i++) {
    sum += i;
  }
  for (int i = 2; i <= n; i++) {
    if ((sum - i) % i == 0) {
      a = i;
      b = true;
      break;
    }
  }
  if (b == false) {
    cout << "No";
    return 0;
  } else {
    cout << "Yes"
         << "\n";
    cout << 1 << " " << a << "\n";
    cout << n - 1 << " ";
    for (int i = 1; i <= n; i++) {
      if (i == a) {
      } else {
        cout << i << " ";
      }
    }
  }
}
