#include <bits/stdc++.h>
const long long int lmax = INT_MAX;
using namespace std;
int main() {
  int n, s;
  cin >> n >> s;
  if (s < 2 * n) {
    cout << "NO" << endl;
  } else {
    vector<int> vec;
    for (int j = 0; j < n - 1; j++) {
      vec.push_back(2);
    }
    vec.push_back(s - 2 * (n - 1));
    cout << "YES" << endl;
    for (int j = 0; j < n; j++) {
      cout << vec[j] << " ";
    }
    cout << endl;
    cout << 1 << endl;
  }
}
