#include <bits/stdc++.h>   using namespace std;   int main() {     int n, a[100], s, sum = 0;     cin >> n >> s;     for (int i = 0; i < n; i++) cin >> a[i];     sort(a, a + n);     for (int i = 0; i < n - 1; i++) sum += a[i];     if (sum <= s)       cout <<  YES n ;     else       cout <<  NO n ;     return 0;   }   