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