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