#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, s;
  cin >> n >> s;
  if (s >= (2 * n)) {
    cout << "YES\n";
    for (long long i = 1; i < n; i++) cout << "2 ";
    cout << s - (n - 1) * 2 << "\n";
    cout << "1\n";
  } else
    cout << "NO\n";
}
