#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll N, S;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> N >> S;
  if (S < 2 * N) {
    cout << "NO";
    return 0;
  }
  cout << "YES\n";
  for (int i = 1; i < N; i++) {
    cout << 2 << ' ';
  }
  cout << S - 2 * (N - 1) << '\n';
  cout << 1;
  return 0;
}
