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