#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7, INF = 1e9;
const int mx = 1e5 + 5;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n, s, k;
  cin >> n >> s;
  if (2 * n > s)
    cout << "NO" << endl;
  else {
    cout << "YES" << endl;
    for (int i = 1; i < n; i++) cout << s / n << " ";
    cout << (s - (s / n) * (n - 1)) << endl;
    cout << 1 << endl;
  }
  return 0;
}
