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