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