Xa, Ya = map(int, input().split()) Xb, Yb = map(int, input().split()) print((Xa * Yb + Xb * Ya) / (Xa + Xb))