#include <bits/stdc++.h>
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  int n;
  cin >> n;
  if (n == 1 || n == 2) {
    cout << "No";
    return 0;
  }
  cout << "Yes" << endl;
  if (n % 2) {
    cout << 1 << " " << n / 2 + 1 << endl;
    cout << n - 1 << " ";
    for (int i = 1; i <= n; i++) {
      if (i != n / 2 + 1) {
        cout << i << " ";
      }
    }
  } else {
    cout << 2 << " " << 1 << " " << n << endl;
    cout << n - 2 << " ";
    for (int i = 2; i < n; i++) {
      cout << i << " ";
    }
  }
  return 0;
}
