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