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