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