#include <bits/stdc++.h>
using namespace std;
void input(long long int &x) {
  bool neg = false;
  register int c;
  x = 0;
  c = getchar();
  if (c == '-') {
    neg = true;
    c = getchar();
  }
  for (; (c > 47 && c < 58); c = getchar()) x = (x << 1) + (x << 3) + c - 48;
  if (neg) x *= -1;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int q = 1;
  while (q--) {
    int n, s;
    cin >> n >> s;
    int qo = s / n;
    int rem = s % n;
    if (qo < 2)
      cout << "no" << endl;
    else {
      cout << "yes" << endl;
      if (rem == 0) {
        for (int i = 0; i < n; i++) cout << qo << " ";
      } else {
        for (int i = 0; i < n - 1; i++) cout << qo << " ";
        cout << s - qo * (n - 1);
      }
      cout << endl;
      cout << "1" << endl;
    }
  }
  return 0;
}
