#include <bits/stdc++.h>
using namespace std;
int n, s;
inline int read() {
  char ch = getchar();
  int ret = 0, f = 1;
  while (!isdigit(ch)) {
    if (ch == '-') f = -f;
    ch = getchar();
  }
  while (isdigit(ch)) {
    ret = ret * 10 + ch - '0';
    ch = getchar();
  }
  return ret;
}
int main() {
  int k, j, i;
  n = read();
  s = read();
  if (n << 1 > s) {
    puts("NO");
    return 0;
  }
  puts("YES");
  for (k = 1; k < n; k++) printf("2 "), s -= 2;
  printf("%d\n", s);
  printf("1\n");
  return 0;
}
