#include <bits/stdc++.h>
using namespace std;
ifstream fin("in.txt");
ofstream fout("out.txt");
int main() {
  int n, s;
  cin >> n >> s;
  if (s < 2 * n) {
    cout << "NO";
    return 0;
  }
  cout << "YES\n";
  for (int i = 1; i < n; i++) {
    cout << "1 ";
  }
  cout << s - n + 1 << endl << s / 2;
}
