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