Skip to content
UPEEC

Voltage Divider

Easy#engineering#electronics· solved by 0 · time limit 2.0 s

Two resistors in series across VinV_{in} form a voltage divider: Vout=Vin⋅R2R1+R2V_{out} = V_{in} \cdot \frac{R_2}{R_1 + R_2}. Print VoutV_{out} with 2 decimals.

Input

VinV_{in}, R1R_1, R2R_2 on one line.

Output

VoutV_{out}

Constraints

0<Vin≤10000 < V_{in} \le 1000, 1≤R1,R2≤1071 \le R_1, R_2 \le 10^7

Sample 1

Input

5 10000 10000

Output

2.50

Sample 2

Input

12 10000 4700

Output

3.84

Sign in or join free to run and submit your solution.