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