#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, i, j, k, l, m, o, p, s = 0, su = 0, s1 = 0, s2 = 0;
  cin >> n;
  if (n < 3) {
    cout << "No";
    return 0;
  }
  cout << "Yes\n";
  cout << n - 1 << " ";
  for (i = 1; i < n; i++) {
    cout << i << " ";
  }
  cout << endl << "1 " << n;
  return 0;
}
