#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n, s;
  cin >> n >> s;
  if (s / n <= 1) {
    cout << "NO\n";
    return 0;
  }
  cout << "YES\n";
  int step = s / n, left = s;
  while (n > 0) {
    if (n == 1) {
      cout << left << "\n";
      left = 0;
    } else {
      cout << step << " ";
      left -= step;
    }
    --n;
  }
  cout << 1;
  return 0;
}
