#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
const long long N = 2e5 + 10;
int32_t main() {
  long long n, s;
  cin >> n >> s;
  long long sum = 0;
  map<long long, long long> make_pair;
  for (long long i = 1; i < n; i++) {
    sum += 1;
    make_pair[sum]++;
  }
  sum += s - n + 1;
  make_pair[sum]++;
  for (long long i = 1; i < n; i++) {
    sum -= 1;
    make_pair[sum]++;
  }
  for (long long i = 1; i <= s; i++) {
    if (!make_pair[i]) {
      cout << "YES" << endl;
      for (long long j = 1; j <= n; j++) {
        if (j == n) {
          cout << s - n + 1 << endl;
        } else
          cout << 1 << " ";
      }
      cout << i << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
}
