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