#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t, n, k, i, p, q, m, rem, count;
  cin >> n >> k;
  if (n > (k / 2))
    cout << "NO" << endl;
  else {
    cout << "YES" << endl;
    for (i = 0; i < n - 1; i++) {
      cout << "1"
           << " ";
    }
    cout << k - (n - 1) << endl;
    cout << k - n << endl;
  }
}
