#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  long long int i, j, k, n, p;
  cin >> n;
  if (n == 1 || n == 2) {
    cout << "No";
    return 0;
  }
  if (n % 2 == 0) {
    p = n / 2;
    cout << "Yes\n";
    cout << 1 << " " << p << "\n";
    cout << n - 1 << " ";
    for (i = 1; i <= n; i++) {
      if (i != p) cout << i << " ";
    }
  } else if (n % 2 == 1) {
    p = (n + 1) / 2;
    cout << "Yes\n";
    cout << 1 << " " << p << "\n";
    cout << n - 1 << " ";
    for (i = 1; i <= n; i++) {
      if (i != p) cout << i << " ";
    }
  }
}
