#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long n, k, ans = 1e11;
  string s;
  cin >> n;
  if (n == 1 || n == 2) {
    cout << "No" << endl;
    return 0;
  }
  cout << "Yes" << endl;
  set<long long> s1, s2;
  for (long long i = 1; i < n + 1; i++) {
    i % 2 ? s1.insert(i) : s2.insert(i);
  }
  cout << s2.size() << " ";
  for (auto i : s2) cout << i << " ";
  cout << endl;
  cout << s1.size() << " ";
  for (auto i : s1) cout << i << " ";
}
