#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
long long power(long long a, long long b, long long p) {
  long long ans = 1;
  while (b) {
    if (b & 1) ans = ans * a % p;
    a = a * a % p, b /= 2;
  }
  return ans;
}
int n, x;
int a[55];
bool vis[55];
int num[55];
void solve() {
  int n, s;
  cin >> n >> s;
  if (n * 2 > s) {
    cout << "NO";
    return;
  }
  cout << "YES" << endl;
  if (s - (n - 1) * 2 == 1) {
    for (int i = 0; i < n - 2; i++) cout << 2 << " ";
    cout << 3 << endl;
  } else {
    for (int i = 0; i < n - 1; i++) cout << 2 << " ";
    cout << "" << s - (n - 1) * 2 << endl;
  }
  cout << 1 << endl;
}
int main() {
  std::ios::sync_with_stdio(false);
  cin.tie(nullptr), cout.tie(0);
  solve();
  return 0;
}
