#include <bits/stdc++.h>
using namespace std;
long long mod = 1e9 + 7;
long long m, l, r, n, q, j, i, cr, cl, c, cnt, x, y, br[300005], k, ar[300005];
long long arr[300005], w;
long long prf[300005], suf[300005];
long long mn;
long long bg = 1e7;
long long dp[305][305];
int main() {
  long long s;
  scanf("%lld %lld", &n, &s);
  if (n > s / 2) {
    cout << "NO\n";
  } else {
    cout << "YES\n";
    for (long long i = 0; i < n - 1; i++)
      cout << "1"
           << " ";
    cout << s - (n - 1) << " ";
    printf("\n");
    cout << (s / 2);
    printf("\n");
  }
}
