#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7, MAXN = 1e5 + 10;
int main() {
  int n;
  cin >> n;
  if (n < 3) {
    cout << "No";
    return 0;
  } else {
    cout << "Yes" << '\n';
    cout << 1 << ' ' << n << '\n';
    cout << n - 1 << ' ';
    for (int i = 1; i < n; i++) cout << i << ' ';
  }
  return 0;
}
