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