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