#include <bits/stdc++.h>
using namespace std;
long long arr[500007], brr[500007], crr[500007];
long long ar[1000][1000], br[1000][1000], cr[1000][1000];
char att[1000], m1, m2;
long long d1, d2, d3, d4, d5, d6, d7;
long long vis[500007], dis[500007];
string g, h, v;
vector<long long> v2;
int main() {
  long long a, b, c, d, e, f, i, j, k, l, m, n, r, t, w, x, y, z, ans, sum;
  d = 0, e = 0, f = 0, l = 0, n = 0, ans = 0, sum = 0;
  vector<long long> v1;
  cin >> a >> b;
  if (b / a <= 1)
    cout << "NO" << endl;
  else {
    cout << "YES" << endl;
    for (i = 1; i <= a; i++) {
      if (i == a) {
        if (b % a == 0)
          cout << b / a;
        else
          cout << b - (b / a) * (a - 1) << " ";
      } else
        cout << b / a << " ";
    }
    cout << "\n";
    cout << 1 << endl;
  }
  return 0;
}
