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