A mother is 21 years older than her son. Six years from now, she will be five times his age. Where's the father ?
We won't give the answer to this one — if you do the math, you'll know precisely where he is.
If we generalize the riddle from the introduction, it can be formulated as:
A mother is $$a$$ years older than her son. $$b$$ years from now, she will be $$c$$ times his age. How old are the mother and her son, expressed in months ?
The input contains the three integers $$a, b, c \in \mathbb{N}$$ that define the above riddle. Each of these integers is given on a separate line. In addition, we guarantee that both the age of the mother and her son (expressed in months) are integer numbers.
There's a single line of output that contains the sentence
The mother is m months old and her son s months.
where the italic fragments need to filled up respectively with the age of the mother and her son (expressed in months).
Input:
21
6
5
Output:
The mother is 243 months old and her son -9 months.