n,m=gets.split(" ").map{|e| e.to_i}
arr=[]
arr2=[]
s1=0
l1=0
n.times{
t1,t2=gets.split(" ").map{|e| e.to_i}
arr<<t1
s1+=t2
}
arr.sort!.reverse!
while l1<n
if s1==0 then
break
end
s1-=arr[l1]
l1+=1
if s1<=0 then
break
end
end
if m<=n-l1 then
puts "Yes"
else
puts "No"
end
bixtPWdldHMuc3BsaXQoIiAiKS5tYXB7fGV8IGUudG9faX0KYXJyPVtdCmFycjI9W10KczE9MApsMT0wCm4udGltZXN7Cgl0MSx0Mj1nZXRzLnNwbGl0KCIgIikubWFwe3xlfCBlLnRvX2l9CglhcnI8PHQxCglzMSs9dDIKfQphcnIuc29ydCEucmV2ZXJzZSEKd2hpbGUgbDE8bgoJaWYgczE9PTAgdGhlbgoJCWJyZWFrCgllbmQKCXMxLT1hcnJbbDFdCglsMSs9MQoJaWYgczE8PTAgdGhlbgoJCWJyZWFrCgllbmQKZW5kCgppZiBtPD1uLWwxIHRoZW4KCXB1dHMgIlllcyIKZWxzZQoJcHV0cyAiTm8iCmVuZA==