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