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