#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:128777216")
using namespace std;
const long double eps = 1e-12;
mt19937 rndm;
void start() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cout.precision(20);
  cout.setf(ios::fixed);
  string FILENAME = "sample";
  rndm.seed(time(0));
}
int main() {
  start();
  int n;
  cin >> n;
  if (n <= 2)
    return !(cout << "No");
  else {
    cout << "Yes\n";
    if (n % 2) {
      cout << n - 1;
      for (int i = 1; i <= n; ++i)
        if (i != n / 2 + 1) cout << ' ' << i;
      cout << endl << 1 << ' ' << n / 2 + 1;
    } else {
      cout << "2 1 " << n << endl;
      cout << n - 2;
      for (int i = 2; i < n; ++i) cout << ' ' << i;
    }
  }
  return 0;
}
