($n,$x,$y)=glob<>; $/=$";$r=<>; $r+=$_*2for<>; $d=$r*$r-$x*$x-$y*$y; print+($n==1?$d!=0:$d<0)?No:Yes