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