eval'N,X,*A='+$<.read.split*?, puts A.min<=X&&X<=A.max ? :Yes: :No