#include <bits/stdc++.h>
using namespace std;
const long long INF = 1001001001001001001ll;
const long long LINF = 1001001001001001001ll;
const long long MOD = 1000000007;
const double EPS = 1e-9;
template <typename T>
ostream& operator<<(ostream& s, const vector<T>& v) {
  long long len = v.size();
  for (long long i = 0; i < len; ++i) {
    s << v[i];
    if (i < len - 1) s << ' ';
  }
  return s;
}
template <typename T>
ostream& operator<<(ostream& s, const vector<vector<T>>& vv) {
  long long len = vv.size();
  for (long long i = 0; i < len; ++i) {
    s << vv[i];
    if (i != len - 1) s << '\n';
  }
  return s;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
__attribute__((constructor)) void initial() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(15);
}
signed main() {
  long long N, S;
  cin >> N >> S;
  if (S < N * 2) {
    cout << "NO\n";
    return 0;
  }
  cout << "YES\n";
  vector<long long> ans(N);
  for (long long i = 0; i < (N); ++i) {
    ans[i] += S / N;
  }
  for (long long i = 0; i < (S % N); ++i) {
    ans[i]++;
  }
  cout << ans << endl;
  cout << 1 << endl;
}
