#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n, s;
  cin >> n >> s;
  long long val = s / n;
  long long rem = s % n;
  long long val1 = val;
  long long val2 = val + rem;
  if (val > 1) {
    cout << "YES\n";
    for (long long i = 0; i < n; i++) {
      if (i == n - 1)
        cout << val2 << " ";
      else
        cout << val1 << " ";
    }
    cout << "\n1\n";
  } else {
    cout << "NO\n";
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int T = 1;
  while (T--) solve();
  return 0;
}
