#include <bits/stdc++.h>
using namespace std;
const long long N = 200005, INF = 2000000000000000000;
long double pi = 3.1415926535897932;
long long power(long long a, long long b, long long p) {
  if (a == 0) return 0;
  long long res = 1;
  a %= p;
  while (b > 0) {
    if (b & 1) res = (res * a) % p;
    b >>= 1;
    a = (a * a) % p;
  }
  return res;
}
int32_t main() {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cout.precision(std::numeric_limits<double>::max_digits10);
  ;
  long long n;
  cin >> n;
  if (n <= 2) {
    cout << "No";
    return 0;
  }
  cout << "Yes\n";
  cout << ((n + 1) / 2) << " ";
  for (long long i = 1; i <= n; i += 2) cout << i << " ";
  cout << "\n";
  cout << (n / 2) << " ";
  for (long long i = 2; i <= n; i += 2) cout << i << " ";
}
