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