#include <bits/stdc++.h>
int main() {
  int n, s;
  scanf("%d%d", &n, &s);
  if (s < 2 * n)
    puts("NO");
  else {
    puts("YES");
    for (int i = 1; i < n; i++) printf("2 ");
    printf("%d\n", s - 2 * (n - 1));
    puts("1");
  }
  return 0;
}
