AX, AY = map(int, input().split()) BX, BY = map(int, input().split()) print((AY * BX + BY * AX) / (AX + BX))