#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned int n, x;
  unsigned int sum = 0;
  bool only_one = false;
  if (n == 0) only_one = true;
  cin >> n >> x;
  for (int i = 0; i < n; i++) {
    int tmp;
    cin >> tmp;
    sum += tmp;
  }
  if ((x - sum) == (n - 1)) only_one = true;
  cout << (only_one ? "YES" : "NO");
}
