#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n, x;
  cin >> n >> x;
  vector<long long> a(n);
  long long s = 0;
  for (long long i = 0; i < n; i++) cin >> a[i], s += a[i];
  long long seg = x - s;
  if (seg == n - 1)
    cout << "YES";
  else
    cout << "NO";
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t = 1;
  while (t--) solve();
  return 0;
}
