#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, cnt = 0;
  cin >> n >> x;
  for (int i = 0, t; i < n; i++) {
    cin >> t;
    cnt += t;
  }
  cnt += n - 1;
  cout << (cnt == x ? "YES" : "NO");
}
