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