Given an improper fraction (as the numerator $N$
and the denominator $D$
), determine and print it in mixed fraction form.
Here are a few examples of improper and mixed fractions:
Improper | Mixed |
---|---|
$ \frac{9}{5} $ | $ 1\frac{4}{5} $ |
$ \frac{3}{2} $ | $ 1\frac{1}{2} $ |
$ \frac{11}{5} $ | $ 2\frac{1}{5} $ |
The input will contain two integers $N$
($1 < N < 100$
) and $D$
($1 < D < N$
).
All test cases will always produce a valid mixed fraction.
Print three integers: the whole number, the numerator and the denominator of the mixed fraction, each separated by a space.
Input | Output |
---|---|
9 5 | 1 4 5 |