#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, x, el, count, i;
  cin >> n >> x;
  count = 0;
  for (i = 0; i < n; i++) {
    cin >> el;
    count = count + el;
  }
  if (n == (x - count) + 1) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
