#include <bits/stdc++.h>
const long long int M = 1e9 + 7;
using namespace std;
int main() {
  long long int n;
  cin >> n;
  if (n <= 2) {
    cout << "No"
         << "\n";
    return 0;
  }
  cout << "Yes"
       << "\n";
  cout << 1 << " " << n << "\n";
  cout << n - 1 << " ";
  for (int i = 1; i < n; i++) cout << i << " ";
  return 0;
}
