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