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