#include <bits/stdc++.h>
using namespace std;
vector<pair<long long, long long> > a;
vector<long long> bus;
long long n, t, z;
int main() {
  cin >> n >> t;
  for (int i = 0; i < n; i++) {
    cin >> z;
    t -= z;
  }
  if (t > n - 1 || t < n - 1) {
    cout << "NO";
  } else
    cout << "YES";
}
