#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
int main() {
  int N, S;
  cin >> N >> S;
  if (S >= 2 * N) {
    cout << "YES" << endl;
    for (int i = 0; i < (N - 1); i++) {
      cout << 2 << " ";
    }
    cout << S - 2 * (N - 1) << endl;
    cout << 1 << endl;
  } else {
    cout << "NO" << endl;
  }
}
