v1, v2, d, w, = ARGF.read.split.map(&:to_f) puts d / (v1 + v2) * w