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