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