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