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