#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int i, j, k, l, n;
  cout.precision(10);
  {
    cin >> n >> k;
    if (n <= k / 2)
      cout << "YES"
           << "\n";
    else {
      cout << "NO"
           << "\n";
      return 0;
    }
    for (i = 0; i < n - 1; i++) {
      cout << "1 ";
    }
    cout << k - (n - 1) << "\n";
    cout << k / 2 << "\n";
  }
  return 0;
}
