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