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