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