using System; using System.Collections.Generic; using System.Linq; namespace yukicoder { public class Program { public static void Main() { var a = Console.ReadLine().Split(' ').Select(x => Math.Pow(double.Parse(x), 2)).ToArray(); if (a[0] == a[1]) { Console.WriteLine(Math.Sqrt(a[0] + a[1])); } else { Console.WriteLine(Math.Sqrt(Math.Max(a[0], a[1]) - Math.Min(a[0], a[1]))); } } } }