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