A resistor with resistance r_1 is connected in series with a resistor of resistance r_2. Then another resistor with resistance r_1 is connected in parallel to the resulting circuit. After that, a resistor with resistance r_2 is again connected in series, and the process continues in the same manner.
In total, the circuit contains resistors.
Determine the equivalent resistance of the resulting circuit.
Three integers n, r_1, r_2~(1 \le n < 2^{31},\ 1 \le r_1, r_2 \le 5000).
Print the total resistance of the circuit with precision 10^{-6}.
Example 1