Two fractions are given. Find their minimum and maximum.
Two fractions a/b and c/d. All numbers are positive integers no more than 109.
Print first minimum and then maximum fraction.