#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, S, w, z;
  cin >> N >> S;
  double q = N, r = S;
  w = floor(r / q);
  int i, j;
  i = S - w * (N - 1);
  if ((w != 1) && (i != 1)) {
    cout << "YES\n";
    for (z = 1; z <= (N - 1); z++) cout << w << " ";
    cout << i << " \n";
    cout << "1\n";
  } else {
    cout << "NO\n";
  }
  return 0;
}
