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