#include <bits/stdc++.h>
using namespace std;
const long long MX = 303030;
const long long INF = 9e15;
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 << "NO\n";
    return 0;
  } else {
    cout << "YES\n";
    for (int i = 1; i < n; i++) {
      cout << 2 << " ";
    }
    cout << s - 2 * (n - 1) << "\n";
    cout << 1 << "\n";
  }
}
