a, b = gets.split.map(&:to_f).minmax
if a == b
    p Math.sqrt(2 * a * a)
else
    p Math.sqrt(b * b - a * a)
end