#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, x;
  cin >> n >> x;
  long long ans = 0;
  for (long long i = 0; i < n; i++) {
    long long k;
    cin >> k;
    ans += k;
  }
  ans += n - 1;
  cout << (ans == x ? "YES" : "NO");
}
