#include <bits/stdc++.h>
using namespace std;
const int inf = (int)1e9;
const int mod = inf + 7;
const double eps = 1e-9;
const double pi = acos(-1.0);
int n;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0);
  cin >> n;
  if (n == 1) return cout << "No" << endl, 0;
  if (n == 2) return cout << "No" << endl, 0;
  cout << "Yes" << endl;
  cout << 1 << " " << n << endl;
  cout << n - 1 << " ";
  for (int i = 1; i < n; ++i) {
    cout << i << " ";
  }
  cout << endl;
}
