import Text.Printf main = do [r,d] <- map read . words <$> getLine :: IO [Double] printf "%f\n" $ sqrt (d^2-r^2)