#include <bits/stdc++.h>
const double PI = acos(-1.0);
using namespace std;
void fast_in_out() {
  std::ios_base::sync_with_stdio(NULL);
  cin.tie(NULL);
  cout.tie(NULL);
}
void pause() {}
int dx[] = {0, 0, -1, -1, -1, 1, 1, 1};
int dy[] = {-1, 1, 0, 1, -1, -1, 0, 1};
bool cmp1(pair<long double, long double> a, pair<long double, long double> b) {
  return a.second < b.second;
}
bool cmp2(pair<long double, long double> a, pair<long double, long double> b) {
  return a.second > b.second;
}
int main() {
  fast_in_out();
  cout << fixed << setprecision(6);
  int n;
  cin >> n;
  int x;
  cin >> x;
  long long sum = 0;
  for (int i = 0; i < n; i++) {
    int y;
    cin >> y;
    sum += y;
  }
  sum += n - 1;
  if (sum == x)
    cout << "YES\n";
  else
    cout << "NO\n";
  pause();
  return 0;
}
