#include <bits/stdc++.h>
using namespace std;
const long long N = 300005;
long long z[N];
signed main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  long long n, s;
  cin >> n >> s;
  if (2 * n <= s) {
    cout << "YES" << endl;
    for (long long i = 1; i <= n - 1; ++i) {
      cout << 1 << " ";
    }
    cout << s - n + 1 << endl;
    cout << n << endl;
  } else {
    cout << "NO" << endl;
  }
}
