#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  if (n == 1 || n == 2) return cout << "No" << endl, 0;
  cout << "Yes" << endl;
  int k = (n % 2 == 0) ? n / 2 : (n + 1) / 2;
  cout << "1 " << k << endl;
  cout << n - 1 << ' ';
  for (int i = 1; i <= n; ++i)
    if (i != k) cout << i << ' ';
  cout << endl;
  return 0;
}
