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