#include <bits/stdc++.h>
#pragma optimize("", off)
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#pragma comment(linker, "/STACK:36777216")
const int mod = 1000000007;
using namespace std;
template <class T>
void smin(T& a, T val) {
  if (a > val) a = val;
}
template <class T>
void smax(T& a, T val) {
  if (a < val) a = val;
}
template <typename T>
inline std::ostream& operator<<(std::ostream& os, const std::vector<T>& v) {
  bool first = true;
  os << "[";
  for (auto i : v) {
    if (!first) os << ", ";
    os << i;
    first = false;
  }
  return os << "]";
}
const int N = 2 * 1e5 + 10;
int n, q, m, x, y;
int a[N];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> n;
  if (n <= 2) {
    cout << "No";
    return 0;
  }
  cout << "Yes" << '\n';
  std::vector<int> v1;
  for (int i = 2; i <= n; i += 2) {
    v1.push_back(i);
  }
  std::vector<int> v2;
  for (int i = 1; i <= n; i += 2) {
    v2.push_back(i);
  }
  cout << int(v1.size()) << ' ';
  for (int i : v1) cout << i << ' ';
  cout << '\n';
  cout << int(v2.size()) << ' ';
  for (int i : v2) cout << i << ' ';
  cout << '\n';
  return 0;
}
