#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using ii = pair<int, int>;
const int oo = 0x3f3f3f3f;
const ll OO = ll(oo) * oo;
const int N = 100005;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  if (n <= 2) {
    cout << "No" << '\n';
    return 0;
  }
  cout << "Yes" << '\n';
  if (n & 1) {
    cout << n - 1 << ' ';
    for (int i = 1; i < n; i++) cout << i << ' ';
    cout << '\n' << 1 << ' ';
    cout << n << '\n';
  } else {
    cout << n / 2 << ' ';
    for (int i = 0; i < n / 2; i++) cout << 2 * i + 1 << ' ';
    cout << '\n';
    cout << n / 2 << ' ';
    for (int i = 0; i < n / 2; i++) cout << 2 * i + 2 << ' ';
    cout << '\n';
  }
  return 0;
}
