#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n > 2) {
    cout << "Yes\n";
    cout << "1 " << n << "\n";
    cout << n - 1 << " ";
    for (int i = 1; i < n; ++i) cout << i << " ";
  } else
    cout << "No";
}
