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