#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
  int temp;
  while (b != 0) {
    temp = a % b;
    a = b;
    b = temp;
  }
  return a;
}
int main() {
  int n;
  cin >> n;
  if (n <= 2) {
    cout << "No";
    return 0;
  } else {
    int dem = 1;
  vuong:
    long long sum = 0;
    for (int i = 1; i <= n; i++) {
      sum += i;
    }
    if (gcd(sum - dem, sum) > 1) {
      cout << "Yes" << endl;
      cout << 1 << " " << dem << endl;
      cout << n - 1 << " ";
      for (int i = 1; i <= n; i++) {
        if (i != dem) {
          cout << i << " ";
        }
      }
      return 0;
    } else {
      dem++;
      goto vuong;
    }
  }
}
