#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n == 1 || n == 2) {
    cout << "No";
    return 0;
  }
  cout << "Yes" << endl;
  cout << n / 2 + (n % 2 == 1) << " ";
  for (int i = 1; i <= n; i += 2) {
    cout << i << " ";
  }
  cout << endl;
  cout << n / 2 << " ";
  for (int i = 2; i <= n; i += 2) {
    cout << i << " ";
  }
  return 0;
}
