#include <bits/stdc++.h>
using namespace std;
using namespace std;
const long long MAX = 100001;
void solve() {
  long long n, s;
  cin >> n >> s;
  long long x = s / n;
  if (x == 0 || x == 1) {
    cout << "NO\n";
    return;
  }
  cout << "YES\n";
  for (long long i = 0; i < n - 1; ++i) {
    cout << x << " ";
  }
  cout << s - (n - 1) * x << "\n";
  cout << "1\n";
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
