#include <bits/stdc++.h>
using namespace std;
int n, s;
int main() {
  cin >> n >> s;
  if (2 * n > s)
    cout << "NO";
  else {
    cout << "YES" << endl;
    for (int i = 1; i <= n - 1; i++) cout << 2 << ' ';
    n--;
    cout << s - n * 2 << endl;
    cout << 1;
  }
  return 0;
}
