x1, y1, x2, y2 = $stdin.read.split.map(&:to_i) r = Rational(x1, (x1 + x2)) puts ((y2 - y1) * r + y1).to_f