#include <bits/stdc++.h>
const long double PI = 3.1415926535897932384626433832795;
const long double EPS = 0.000000001;
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  if (n == 1 || n == 2) {
    cout << "No";
    return 0;
  }
  if (n % 2 == 0) {
    cout << "Yes\n" << n / 2 << " ";
    for (long long i = 2; i <= n; i += 2) cout << i << " ";
    cout << "\n" << n / 2 << " ";
    for (long long i = 1; i <= n; i += 2) cout << i << " ";
    return 0;
  }
  cout << "Yes\n" << n / 2 << " ";
  for (long long i = 2; i <= n; i += 2) cout << i << " ";
  cout << "\n" << n / 2 + 1 << " ";
  for (long long i = 1; i <= n; i += 2) cout << i << " ";
  return 0;
}
