using System; public class Hello { public static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var r = double.Parse(line[0]); var d = double.Parse(line[1]); var ans = Math.Sqrt(d * d - r * r); Console.WriteLine(ans); } }