($a,$b)=glob<>; print$a==$b|$a==2&$b==4|$a==4&$b==2?Yes:No