#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int n;
  while (cin >> n) {
    long long sum = (1 + n) * n / 2;
    if (n == 1 || n == 2) {
      cout << "No" << endl;
    } else {
      cout << "Yes" << endl;
      int flag = 0;
      for (int i = 2; i <= 45000; i++) {
        if (sum % i == 0) {
          cout << "1"
               << " " << i << endl;
          cout << n - 1 << " ";
          for (int j = 1; j <= n; j++) {
            if (j != i) {
              cout << j << " ";
            }
          }
          flag = 1;
          cout << endl;
          break;
        }
      }
      if (flag)
        continue;
      else
        cout << "No" << endl;
    }
  }
  return 0;
}
