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