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