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