R=range J=lambda:map(int,input().split()) N,D=J() p=1<x:o[s]+=[(b,x)] print("YNeos"[sum(A)+min(x for b,x in o[p-1])>D::2])