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