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