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