#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a, b;
  if (n == 1 || n == 2)
    cout << "No";
  else {
    cout << "Yes\n";
    for (int i = 1; i <= n; i++) {
      if (i % 2 == 0)
        b.push_back(i);
      else
        a.push_back(i);
    }
    int x = a.size(), y = b.size();
    cout << x << " ";
    for (int i = 0; i < x; i++) cout << a[i] << " ";
    cout << "\n";
    cout << y << " ";
    for (int i = 0; i < y; i++) cout << b[i] << " ";
  }
  return 0;
}
