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