#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k, l, m, n, sum = 0, add = 0;
  int a[100000], b[100000];
  cin >> n;
  if (n < 3)
    cout << "No";
  else {
    cout << "Yes" << endl;
    cout << n / 2 << " ";
    for (i = 1; i <= n; i++) {
      if (i % 2 == 0) {
        cout << i << " ";
      }
    }
    cout << endl;
    if (n % 2 == 0)
      cout << n / 2 << " ";
    else
      cout << (n / 2) + 1 << " ";
    for (i = 1; i <= n; i++) {
      if (i % 2 == 1) cout << i << " ";
    }
  }
}
