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