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