Clocking Chaos
Jack is upgrading his PC, and he has only one component left to buy, the most important of all, the CPU. Jack doesn't care about the price - all he cares about is raw processing power. Jack has been given a list of CPU specs, containing their clock speed at 1V, and the maximum voltage that a CPU can be run at. Given that a CPU's clock changes in proportion to the voltage, help Jack determine the most powerful CPU.
Input
The first line contains a single integer (
) - the number of processors that Jack is considering.
The next line contains integers (
) -
is the clock speed of the
th processor.
The final line contains decimal numbers (
) -
is the maximum voltage of the
th processor.
Output
Output a single number - the maximum clock speed Jack can produce, to 3 decimal places
Example
Input 1
4
3 8 2 6
1.5 2.3 5.9 1.8
Output 1
18.400
Input 2
4
6 6 8 7
3.11 6.65 5.35 3.88
Output 2
42.800
Comments