#include <bits/stdc++.h>
using namespace std;
long long gcd(long long first, long long second) {
  return !second ? first : gcd(second, first % second);
}
long long x, y, z;
deque<long long> q, p;
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  ;
  cin >> x;
  for (int i = 1; i <= x; i++) {
    if (i % 2 == 0) {
      z += i;
      q.push_back(i);
    } else {
      y += i;
      p.push_back(i);
    }
  }
  if (gcd(y, z) > 1) {
    cout << "Yes" << endl;
    cout << q.size() << " ";
    while (!q.empty()) {
      cout << q.front() << " ";
      q.pop_front();
    }
    cout << endl;
    cout << p.size() << " ";
    while (!p.empty()) {
      cout << p.front() << " ";
      p.pop_front();
    }
    cout << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
