#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, t, k, s;
  cin >> n >> s;
  if (s / n == 1) {
    cout << "NO" << endl;
  } else {
    cout << "YES" << endl;
    for (int i = 1; i < n; i++) cout << s / n << " ";
    cout << (s / n) + (s % n) << endl;
    cout << 1 << endl;
  }
  return 0;
}
