#include <bits/stdc++.h>
using namespace std;
long long int power(long long int x, long long int n) {
  long long int res = 1;
  while (n > 0) {
    if (n % 2 == 1) {
      res = res * x;
    }
    x = x * x;
    n = n / 2;
  }
  return res;
}
long long int powm(long long int a, long long int b) {
  long long int res = 1;
  a %= 1000000007;
  assert(b >= 0);
  for (; b; b >>= 1) {
    if (b & 1) res = res * a % 1000000007;
    a = a * a % 1000000007;
  }
  return res;
}
void solve() {
  int n, s;
  cin >> n >> s;
  vector<int> ans;
  for (int i = 0; i < n - 1; i++) ans.push_back(1);
  ans.push_back(s - (n - 1));
  if (s < (2 * n)) {
    cout << "NO" << '\n';
    return;
  }
  cout << "YES" << '\n';
  for (auto x : ans) cout << x << " ";
  cout << '\n';
  cout << n << '\n';
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int T;
  T = 1;
  while (T--) {
    solve();
  }
  return 0;
}
