#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
int main() {
  std::ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  int n, s;
  cin >> n >> s;
  if (s / n >= 2) {
    cout << "YES" << '\n';
    int x = s / n;
    for (int i = 1; i <= n; i++) {
      if (i != n || (s % n == 0))
        cout << x << ' ';
      else
        cout << s - x * (n - 1) << ' ';
    }
    cout << '\n';
    cout << 1 << '\n';
    return 0;
  }
  cout << "NO" << '\n';
  return 0;
}
