#include <bits/stdc++.h>
using namespace std;
void init() {
  long long n, x;
  cin >> n >> x;
  vector<long long> a(n);
  for (long long &i : a) cin >> i;
  long long s = n - 1;
  for (auto &x : a) s += x;
  if (s == x)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
int32_t main() {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  init();
  return 0;
}
