#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  long long n, s;
  cin >> n >> s;
  long long cs = 0;
  vector<int> v;
  for (int i = 0; i < n - 1; ++i) v.push_back(1);
  v.push_back(s - (n - 1));
  if (s < 2 * n)
    cout << "NO"
         << "\n";
  else {
    cout << "YES"
         << "\n";
    for (int i = 0; i < v.size(); ++i) cout << v[i] << " ";
    cout << "\n";
    cout << v[n - 1] - 1 << "\n";
  }
  return 0;
}
