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