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