sides = gets.split.map(&:to_i) c = sides.max a = sides.min b1 = (c ** 2 - a ** 2) ** 0.5 b2 = (c ** 2 + a ** 2) ** 0.5 if b1 + a > c puts b1 else puts b2 end