A lioness is trying to hunt down a buffalo. The lioness spots a buffalo metres away. As soon as she sees the buffalo, the buffalo spots her as well, and starts running. The lioness immediately starts chasing after her. If the lioness is times faster than the buffalo, how far will she have to run before she can capture the buffalo?
The input consists of two integer numbers, denoting the values of and respectively, as described above.
It can be proven that the distance which the lioness will have to run is a rational number, that is it can be written in the form of a fraction . Output two space-separated integers and , so that is the answer to this problem. You must output the fraction in its fully reduced form, (e.g. if the answer to the problem is , you must output and since is the reduced form of ).