module Main where import Control.Applicative main :: IO () main = do [a, b] <- map read . words <$> getLine print $ if a > b then sqrt (a^2 - b^2) else sqrt (b^2 - a^2)