a, b, c, d, e, f = gets.split(" ").map{|s| s.to_f} p = c / (2*a) q = d / (2*a) r = Math.sqrt(p**2 + q**2 - (e-f) / a) puts r