#include <bits/stdc++.h>
using namespace std;
const int MOD = (int)1e9 + 7;
void solve() {
  long long int n, s;
  cin >> n >> s;
  if (n == 1 && s == 1) {
    cout << "NO" << endl;
  } else if (n == 1 && s > 1) {
    cout << "YES" << endl;
    cout << s << endl;
    cout << 1 << endl;
  } else if (s < 2 * n) {
    cout << "NO" << endl;
  } else {
    cout << "YES" << endl;
    for (long long int i = 1; i <= n; i++) {
      if (i == n) {
        cout << s - (2 * (n - 1)) << endl;
      } else {
        cout << 2 << " ";
      }
    }
    cout << 1 << endl;
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int t;
  solve();
  return 0;
}
