#include <bits/stdc++.h>
using namespace std;
int N, X;
void readin() {
  cin >> N >> X;
  int sum = 0, t;
  for (int i = 1; i <= N; ++i) {
    cin >> t;
    sum += t;
  }
  if (sum + N - 1 == X) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}
int main() {
  readin();
  return 0;
}
