#include <bits/stdc++.h>
using namespace std;
long long n, a, x, k;
int main() {
  cin >> n >> x;
  if (n == 1) {
    cin >> a;
    if (a == x) {
      cout << "YES";
    } else {
      cout << "NO";
    }
  } else {
    for (int i = 1; i <= n; i++) {
      cin >> a;
      k += a;
    }
    k += n - 1;
    if (k == x) {
      cout << "YES";
    } else {
      cout << "NO";
    }
  }
}
