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