open Microsoft.FSharp.Core let [|r; d|] = stdin.ReadLine().Split " " |> Array.map float d ** 2 - r ** 2 |> sqrt |> printfn "%f"