print sqrt<>!~(' (.*)'x5)+($5-$4+$2**2/4+$3**2/4)/$`