#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
const int mod = 1e9 + 7;
int main() {
  int n, k;
  cin >> n >> k;
  if (n * 2 > k) return cout << "NO", 0;
  cout << "YES" << endl;
  for (int i = 1; i < n; i++) cout << 1 << " ";
  cout << k - (n - 1) << endl;
  cout << k / 2 << endl;
  return 0;
}
