#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  long long int x;
  cin.tie(0);
  ios::sync_with_stdio(false);
  cin >> n >> x;
  long long int total = (n - 1);
  int temp;
  for (int i = 0; i < n; i++) {
    cin >> temp;
    total += temp;
  }
  cout << (total == x ? "YES" : "NO") << endl;
}
