#include <bits/stdc++.h>
using namespace std;
long long mas[100001];
signed main() {
  long long n, x;
  cin >> n >> x;
  long long sum = 0;
  for (long long i = 1; i <= n; ++i) {
    cin >> mas[i];
    sum += mas[i];
  }
  if (x - sum == n - 1) {
    return 0 * printf("YES\n");
  } else {
    return 0 * printf("NO\n");
  }
}
