<>;print grep({$_<($s+=$_<<32)}sort{$a<=>$b}map{/ /;$`+$'<<32|$`}<>)?No:Yes