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