We do Algebra, Geometry, Matrix, Trigonometry, Calculus, Vector, Permutation - Combination, Probability, Function, Graph and many more maths in our college life. Our life sucks with these maths. Now we feel math as a freaky subject. Let's go hiking on the world of highschool maths. Where there was no fear for maths. There was just love.
Suppose x is the summation of two numbers and their ratio is m:n. So what are those numbers?
You'll be given three int type numbers x, m and n in one line separated with spaces.
Calculate those two numbers and print them out separating with space in one line.
Input | Output |
---|---|
360 4 5 | 160 200 |
Problemsetter: Mashfiqur R. Khan (mashfiqur404)