Two fractions are given. Find their minimum and maximum.
Two fractions a/b and c/d. All numbers are positive integers no more than 10^9.
Print first the minimum fraction, then the maximum fraction.
Example 1
Example 2