r,d = gets.split.map(&:to_f) puts Math.sqrt(d ** 2 - r ** 2)