#include <bits/stdc++.h>
using namespace std;
const int maxn = 45010;
int n;
bool flag[maxn];
int main() {
  cin >> n;
  if (n == 1) {
    cout << "No";
    return 0;
  }
  long long sum = n * (n + 1) / 2;
  for (int i = 2; i * i <= sum; i++) {
    if (sum % i == 0) {
      cout << "Yes" << endl;
      flag[i] = true;
      cout << "1 " << i << endl << n - 1 << " ";
      for (int i = 1; i <= n; i++)
        if (!flag[i]) cout << i << " ";
      return 0;
    }
  }
  cout << "No";
  return 0;
}
