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