#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 a;       cin >> a;       s += a;     }     s += n - 1;     if (s == x) {       cout <<  YES  << endl;     } else {       cout <<  NO  << endl;     }     return 0;   }   