#include <bits/stdc++.h>
using namespace std;
long long fn(long long n) {
  long long m = n, sum = 0;
  while (m) {
    sum += m % 10;
    m /= 10;
  }
  return sum;
}
long long a[100005];
int main() {
  long long n, m, x, y, i, j, sum, flag, k;
  char ch;
  string str;
  long long test_case = 0, min = 999999999, first, last, ans;
  while (cin >> n >> x) {
    sum = 0;
    for (i = 1; i <= n; i++) {
      cin >> a[i];
      sum += a[i];
    }
    sum += n - 1;
    if (sum == x) {
      cout << "YES\n";
    } else {
      cout << "NO\n";
    }
  }
  return 0;
}
