#include <bits/stdc++.h>
using namespace std;
long long expo(long long x, long long n) {
  if (n == 0)
    return 1;
  else if (n % 2 == 0)
    return (expo((x * x) % 1000000007, n / 2));
  else
    return (x * expo((x * x) % 1000000007, (n - 1) / 2)) % 1000000007;
}
int main() {
  long long t;
  t = 1;
  while (t--) {
    long long n, x;
    cin >> n >> x;
    long long a[n], sum = 0;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      sum += a[i];
    }
    if (n - 1 + sum == x)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
