#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  if (n < 3)
    cout << "No" << '\n';
  else {
    cout << "Yes" << '\n';
    vector<int> v1, v2;
    for (int i = (1); i < (n + 1); ++i)
      if (i & 1)
        v1.push_back(i);
      else
        v2.push_back(i);
    cout << v1.size() << " ";
    for (int x : v1) cout << x << " ";
    cout << '\n';
    cout << v2.size() << " ";
    for (int x : v2) cout << x << " ";
    cout << '\n';
  }
  return 0;
}
