#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  int s = 1LL * n * (n + 1) / 2;
  for (int i = 2; i <= n; i++)
    if (s % i == 0) {
      printf("Yes\n");
      printf("1 %d\n", i);
      printf("%d ", n - 1);
      for (int j = 1; j <= n; j++)
        if (j != i) printf("%d ", j);
      return 0;
    }
  printf("No");
  return 0;
}
