#include <bits/stdc++.h>
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
using namespace std;
long long n, s;
signed main() {
  while (~scanf(" %lld %lld", &n, &s)) {
    if (((s + 2) / 2) > n) {
      printf("YES\n");
      for (long long i = 1; i < n; i++) {
        printf("1 ");
      }
      printf("%lld\n", s - n + 1);
      printf("%lld\n", s - n);
    } else {
      printf("NO\n");
    }
  }
  return 0;
}
