#include <bits/stdc++.h>
using namespace std;
const int N = 3e5 + 10;
const int INF = 1e9 + 10;
const int MOD = 998244353;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, s;
  cin >> n >> s;
  vector<int> arr(n, 1);
  arr[0] += s - n;
  if (2 * n <= s) {
    cout << "YES" << '\n';
    for (auto i : arr) cout << i << ' ';
    cout << '\n' << s / 2;
  } else
    cout << "NO";
}
