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