#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, s;
  cin >> n >> s;
  if (s < n)
    cout << "NO" << endl;
  else if (2 * n > s)
    cout << "NO" << endl;
  else if (2 * n <= s) {
    cout << "YES" << endl;
    for (int i = 1; i <= n - 1; i++) {
      cout << 2 << " ";
    }
    int x = s - (2 * (n - 1));
    cout << x << endl;
    cout << 1 << endl;
  }
  return 0;
}
