#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int n, x, sum = 0;
  cin >> n >> x;
  for (int i = 0; i < n; i++) {
    int t;
    cin >> t;
    sum = sum + t;
  }
  if (x - sum == n - 1) {
    cout << "YES";
  } else
    cout << "NO";
}
