#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 10;
const int inf = 1e9;
const int mod = 1e9 + 7;
int main(int argc, char const *argv[]) {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(0);
  int n;
  cin >> n;
  if (n == 1 || n == 2)
    cout << "No" << '\n';
  else {
    cout << "Yes" << '\n';
    int val = (n * (n + 1)) / 2;
    if (val % 2) {
      int p;
      for (int i = 3; i <= n; i += 2) {
        if ((val - i) % i == 0) {
          p = i;
          break;
        }
      }
      cout << 1 << " " << p << '\n';
      cout << n - 1 << " ";
      for (int i = 1; i <= n; i++) {
        if (i != p) cout << i << " ";
      }
    } else {
      cout << 1 << " " << 2 << '\n';
      cout << n - 1 << " ";
      for (int i = 1; i <= n; i++) {
        if (i != 2) cout << i << " ";
      }
    }
    cout << '\n';
  }
  return 0;
}
