#include <bits/stdc++.h>
using namespace std;
void fast() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
long long int fun(long long int x) { return (((x) * (3 * x + 1)) / 2); }
void passing_map(map<long long int, long long int> &m) {
  for (int i = 1; i < 10; i++) {
    m[i] += 2;
  }
}
int main() {
  fast();
  long long int t = 1;
  while (t--) {
    long long int n, s;
    cin >> n >> s;
    long long int h = n;
    if (2 * n <= s) {
      cout << "yes"
           << "\n";
      while (n-- - 1) cout << "1 ";
      cout << s - h + 1 << "\n" << s - h << "\n";
    } else
      cout << "no"
           << "\n";
  }
}
