#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  cin >> n;
  int sum = (n * (n + 1)) / 2;
  if (n == 1 || n == 2) {
    cout << "No" << endl;
    return 0;
  }
  cout << "Yes" << endl;
  int i;
  for (i = 2; i <= n; i++) {
    if (sum % i == 0) {
      cout << 1 << " " << i << endl;
      break;
    }
  }
  cout << n - 1 << " ";
  for (int j = 1; j <= n; j++) {
    if (j != i) cout << j << " ";
  }
  return 0;
}
