#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 5;
const int mod = 1e9 + 7;
int main() {
  int n, sum = 0;
  cin >> n;
  if (n <= 2) {
    cout << "No";
    return 0;
  }
  int k = (n & 1) ? (n + 1) / 2 : n / 2;
  cout << "Yes"
       << "\n";
  ;
  cout << 1 << " " << k << "\n";
  ;
  cout << n - 1 << " ";
  for (int i = 1; i <= n; i++) {
    if (i != k) cout << i << " ";
  }
  cout << "\n";
  ;
  return 0;
}
