open System let r, d = let t = stdin.ReadLine().Split() |> Array.map float in t.[0], t.[1] d * d - r * r |> sqrt |> stdout.WriteLine