#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a;
  long x, sum = 0, k;
  scanf("%d", &n);
  scanf("%ld", &x);
  for (long int i = 0; i < n; ++i) {
    cin >> a;
    sum = sum + a;
  }
  k = x - sum;
  if (k == n - 1)
    printf("YES");
  else
    printf("NO");
  return 0;
}
