#include <bits/stdc++.h>
using namespace std;
inline bool EQ(double a, double b) { return fabs(a - b) < 1e-9; }
const int INF = 1 << 29;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long n, i;
  cin >> n;
  if (n < 3) {
    cout << "No\n";
    return 0;
  }
  cout << "Yes" << endl;
  if (n % 2 == 0) {
    cout << "2 " << n / 2 << " " << (n / 2) + 1 << endl;
    cout << n - 2 << " ";
    for (i = 1; i <= n; i++)
      if (i != n / 2 && i != ((n / 2) + 1)) cout << i << " ";
  } else {
    cout << "1 " << (n + 1) / 2 << endl;
    cout << (n - 1) << " ";
    for (i = 1; i <= n; i++)
      if (i != (n + 1) / 2) cout << i << " ";
  }
  return 0;
}
