#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, x;
  cin >> n >> x;
  int arr[n];
  int sum = 0;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    sum += arr[i];
  }
  vector<int> v(arr, arr + sizeof arr / sizeof arr[0]);
  int res = x - sum;
  if (res == n - 1)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
