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