#include <bits/stdc++.h>
int main() {
  int N, X, sum = 0;
  std::cin >> N >> X;
  for (int i = 0; i < N; i++) {
    int tmp;
    std::cin >> tmp;
    sum += tmp;
  }
  if (sum + N - 1 == X)
    std::cout << "YES\n";
  else
    std::cout << "NO\n";
  return 0;
}
