vl, vr = gets.split.map(&:to_i) d = gets.to_i w = gets.to_i ans = d.fdiv(vl + vr) * w puts ans