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