Highschool Mathematics

mashfiqur404 ATOEB: কোডshock_ 2019
Limits 500ms, 64 MB

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?

Input

You'll be given three int type numbers x, m and n in one line separated with spaces.

Output

Calculate those two numbers and print them out separating with space in one line.

Sample

InputOutput
360 4 5
160 200

Problemsetter: Mashfiqur R. Khan (mashfiqur404)

Submit

Login to submit.

Statistics

73% Solution Ratio
theunownEarliest, Dec '19
theunownFastest, 0.0s
theunownLightest, 0 B
mdvirusShortest, 57B
Toph uses cookies. By continuing you agree to our Cookie Policy.