#P78. 练14.3 地球人口承载力估计

练14.3 地球人口承载力估计

Description

Assume that the Earth's renewable resources grow at a constant rate. Based on this calculation, the existing resources plus the new resources on Earth can support xx billion people for aa years, or yy billion people for bb years.
To achieve sustainable development and avoid resource depletion, what is the maximum number of billion people that Earth can support?

Input Format

Input consists of a single line with four positive integers xx, aa, yy, and bb, separated by spaces. The constraints are x>yx > y, a<ba < b, ax<byax < by, and each integer is not greater than 1000010000.

Output Format

Output a real number zz, representing the maximum number of billion people that Earth can support, rounded to two decimal places.

Sample

110 90 90 210
75.00