# Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

# Highschool Mathematics

By mashfiqur404 · 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)

• Math

### Statistics

74% Solution Ratio

theunownEarliest, 6M ago

theunownFastest, 0.0s

theunownLightest, 0 B

mdvirusShortest, 57B

### Submit 