#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 50;
int a[maxn];
int vis[maxn];
int main() {
  std::ios::sync_with_stdio(false);
  int n, s;
  cin >> n >> s;
  if (s / n <= 1)
    cout << "NO" << endl;
  else {
    cout << "YES" << endl;
    for (int i = 0; i < n - 1; i++) cout << 2 << " ", s -= 2;
    cout << s << endl;
    cout << 1 << endl;
  }
  return 0;
}
