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