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