#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, i;
  vector<long long int> s1;
  vector<long long int> s2;
  cin >> n;
  if (n <= 2)
    cout << "No" << endl;
  else {
    for (i = 2; i <= n; i += 2) s1.push_back(i);
    for (i = 1; i <= n; i += 2) s2.push_back(i);
    cout << "Yes" << endl;
    cout << s1.size() << " ";
    for (i = 0; i < s1.size(); i++) cout << s1[i] << " ";
    cout << endl;
    cout << s2.size() << " ";
    for (i = 0; i < s2.size(); i++) cout << s2[i] << " ";
    cout << endl;
  }
  return 0;
}
