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