xa, ya = map(int, input().split()) xb, yb = map(int, input().split()) print(ya + xa * (yb - ya) / (xb + xa))