vl,vr = gets.split.map(&:to_f) d = gets.to_f w = gets.to_f p w * d / (vl+vr)