$/=$";print((($c=($a=<>**2)-($b=<>**2))?$c>0?$c:-$c:$a+$b)**.5)