#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using llu = unsigned long long;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n, s;
  cin >> n >> s;
  for (int i = 0; i < n - 1; i++) {
    if (s < 2) {
      break;
    }
    s -= 2;
  }
  if (s < 2) {
    cout << "NO\n";
  } else {
    cout << "YES\n";
    for (int i = 0; i < n - 1; i++) {
      cout << "2 ";
    }
    cout << s << "\n1\n";
  }
  return 0;
}
