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