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