#include <bits/stdc++.h>
using namespace std;
const int inf = 1e18;
const int mod = 1e9 + 7;
const int M = 200009;
int main() {
  long long int t;
  long long int n, m, i, j, s = 0;
  long long int a, b;
  cin >> a >> b;
  if (a * 2 > b) {
    printf("NO\n");
    ;
  } else {
    printf("YES\n");
    ;
    if (b % 2 == 0) {
      for (i = 0; i < a - 1; i++) {
        cout << 2 << " ";
        s += 2;
      }
      cout << b - s << endl;
      cout << 1 << endl;
    } else {
      for (i = 0; i < a - 1; i++) {
        cout << 2 << " ";
        s++;
      }
      cout << b - s * 2 << endl;
      cout << b - 1 << endl;
    }
  }
}
