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