#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, S;
  cin >> n >> S;
  long long sum = 0;
  vector<long long> ans;
  for (long long i = (0); i < (n - 1); ++i) {
    ans.push_back(1);
  }
  long long a = S - (n - 1);
  if (a > n) {
    cout << "YES"
         << "\n";
    ans.push_back(a);
    for (long long i = (0); i < (ans.size()); ++i) {
      cout << ans[i];
      if (i != ans.size() - 1) cout << " ";
    }
    cout << "\n";
    cout << n << "\n";
  } else {
    cout << "NO"
         << "\n";
  }
  return 0;
}
