#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return a ? gcd(b % a, a) : b; }
string bin_gen(unsigned long long n, unsigned long long num) {
  string bin = "";
  while (n--) {
    if (num % 2)
      bin += "1";
    else
      bin += "0";
    num /= 2;
  }
  return bin;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t = 1;
  while (t--) {
    long long n;
    cin >> n;
    long long second;
    cin >> second;
    if (n == 1) {
      if (second == 1) {
        cout << "NO\n";
      } else {
        cout << "YES\n"
             << second << "\n"
             << "1\n";
      }
      break;
    }
    if (second <= (2 * n - 1)) {
      cout << "NO\n";
      break;
    }
    cout << "YES\n";
    for (long long i = 0; i < n - 1; i++) {
      cout << "1 ";
    }
    cout << second - (n - 1) << "\n" << n << "\n";
  }
  return 0;
}
