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