#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  if (n < 3) {
    cout << "No\n";
    return 0;
  }
  cout << "Yes\n";
  cout << n / 2 << ' ';
  for (int i = 2; i <= n; i += 2) {
    cout << i << ' ';
  }
  cout << endl;
  cout << (n + 1) / 2 << ' ';
  for (int i = 1; i <= n; i += 2) {
    cout << i << ' ';
  }
  cout << endl;
  return 0;
}
