#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
inline void smax(int &x, int y) { x = max(x, y); }
inline void smin(int &x, int y) { x = min(x, y); }
ll gcd(ll a, ll b) { return ((b == 0) ? a : gcd(b, a % b)); }
int main() {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  if (n == 1 || n == 2) {
    cout << "No";
    exit(0);
  }
  if (n % 2 == 0) {
    cout << "Yes" << endl;
    cout << n / 2 << " ";
    for (__typeof(n + 1) i = (1) - ((1) > (n + 1));
         i != (n + 1) - ((1) > (n + 1)); i += 1 - 2 * ((1) > (n + 1))) {
      if (i % 2 == 0) cout << i << " ";
    }
    cout << endl;
    cout << n / 2 << " ";
    for (__typeof(n + 1) i = (1) - ((1) > (n + 1));
         i != (n + 1) - ((1) > (n + 1)); i += 1 - 2 * ((1) > (n + 1))) {
      if (i % 2 == 1) cout << i << " ";
    }
    exit(0);
  }
  cout << "Yes" << endl;
  cout << 1 << " " << n << endl;
  cout << n - 1 << " ";
  for (__typeof(n) i = (1) - ((1) > (n)); i != (n) - ((1) > (n));
       i += 1 - 2 * ((1) > (n)))
    cout << i << " ";
}
