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