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