#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  if (n <= 2) {
    cout << "No" << '\n';
    return 0;
  }
  vector<int> A, B;
  for (int i = 1; i <= n; i++) {
    if (i & 1)
      A.push_back(i);
    else
      B.push_back(i);
  }
  cout << "Yes" << '\n';
  cout << A.size() << " ";
  for (int i : A) cout << i << ' ';
  cout << '\n';
  cout << B.size() << " ";
  for (int i : B) cout << i << ' ';
  cout << '\n';
  return 0;
}
