#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, i;
  cin >> n;
  if (n == 1 || n == 2)
    cout << "No";
  else {
    cout << "Yes\n";
    if (n % 2 == 0) {
      cout << n / 2 << " ";
      for (i = 1; i < n; i = i + 2) cout << i << " ";
      cout << "\n" << n / 2 << " ";
      for (i = 2; i <= n; i = i + 2) cout << i << " ";
    } else {
      cout << n / 2 + 1 << " ";
      for (i = 1; i <= n; i = i + 2) cout << i << " ";
      cout << "\n" << n / 2 << " ";
      for (i = 2; i < n; i = i + 2) cout << i << " ";
    }
  }
}
