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