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