#include <bits/stdc++.h>
using ll = int64_t;
using ull = uint64_t;
using namespace std;
int main(int argc, const char* argv[]) {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long int i, j, k, l, N, M, T, a, b, K, c, S;
  cin >> N >> S;
  a = S / N;
  long long int ct = 0;
  vector<long long int> v;
  for (i = 0; i < (N - 1); i++) {
    ct += a;
    v.push_back(a);
  }
  v.push_back(S - ct);
  if (a == 1 || v[N - 1] == 1) {
    cout << "NO" << endl;
  } else {
    cout << "YES" << endl;
    for (i = 0; i < v.size(); i++) {
      cout << v[i] << "\t";
    }
    cout << endl;
    cout << 1;
    cout << endl;
  }
  cout << endl;
  return 0;
}
