#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  scanf("%lld", &n);
  if (n <= 2) {
    printf("No\n");
    return 0;
  }
  printf("Yes\n");
  long long a = n / 2, b = n / 2;
  if (n & 1) {
    b++;
  }
  cout << a << ' ';
  for (long long i = 2; i <= n; i += 2) {
    cout << i << ' ';
  }
  cout << endl;
  cout << b << ' ';
  for (long long i = 1; i <= n; i += 2) {
    cout << i << ' ';
  }
}
