#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n, x, num;
  long long sum = 0;
  cin >> n >> x;
  if (n == 0) {
    cout << "YES" << endl;
    exit(0);
  }
  for (int i = 0; i < n; i++) {
    cin >> num;
    sum += num;
  }
  sum += n - 1;
  (x == sum) ? cout << "YES" << endl : cout << "NO" << endl;
  return 0;
}
