#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int n, x;
  cin >> n >> x;
  int temp, cnt = 0;
  for (int i = 0; i < n; i++) {
    cin >> temp;
    cnt += temp;
  }
  if ((cnt + n - 1) == x)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
