#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n;
  cin >> n;
  if (n == 1 || n == 2)
    cout << "No" << endl;
  else if (n % 2) {
    long long int a = n / 2;
    a++;
    cout << "Yes" << endl;
    cout << 1 << " " << a << endl;
    cout << n - 1 << " ";
    for (long long int i = 1; i <= n; i++) {
      if (i != a) cout << i << " ";
    }
    cout << endl;
  } else if (n % 2 == 0) {
    cout << "Yes" << endl;
    cout << n / 2 << " ";
    for (long long int i = 1; i <= n; i++) {
      if (i % 2) cout << i << " ";
    }
    cout << endl;
    cout << n / 2 << " ";
    for (long long int i = 1; i <= n; i++) {
      if (i % 2 == 0) cout << i << " ";
    }
    cout << endl;
  }
}
void testcase() {
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  solve();
}
