http://codeforces.com/problemset/problem/426/A
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <algorithm>
using namespace std;
int main()
{
int n,m,a;
while(~scanf("%d%d",&m,&n))
{
int maxx=-1e9;
int sum=0;
for(int i=0;i<m;i++)
{
scanf("%d",&a);
if(a>maxx)
{
maxx=a;
}
sum+=a;
}
if(sum-maxx<=n)
printf("YES\n");
else
printf("NO\n");
}
return 0;
}