#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t = 1, n, xx, x = 0, y = 0, cc, f, z, m, k;
  while (t--) {
    cin >> n >> m;
    if (2 * n > m)
      cout << "NO" << endl;
    else {
      cout << "YES" << endl;
      for (int i = 0; i < n - 1; i++) cout << 1 << " ";
      cout << m - (n - 1) << endl << m / 2 << endl;
    }
  }
  return 0;
}
