#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, s, m;
  cin >> n >> s;
  int k = s / 2;
  m = n;
  if (n > k)
    cout << "NO";
  else {
    cout << "YES"
         << "\n";
    while (m != 1) {
      cout << 2 << " ";
      m--;
    }
    cout << s - 2 * (n - 1) << "\n";
    cout << 1;
  }
}
