print<>!~('(.*)\s'x4),(Y,($1+$3)/2 .$".($2+$4)/2,N)[($1-$3)**2/8<=>$2-$4]