#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, s;
  cin >> n >> s;
  int a[n + 1];
  int cnt = 0;
  for (int i = 1; i < n; ++i) {
    a[i] = 1;
    cnt++;
  }
  a[n] = s - cnt;
  s -= cnt;
  if (s - cnt < 2) {
    cout << "NO" << endl;
  } else {
    cout << "YES" << endl;
    for (int i = 1; i <= n; ++i) cout << a[i] << ' ';
    cout << endl;
    cout << (cnt + 1) << endl;
  }
  return 0;
}
