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