Problems
Fractions: minimum and maximum
Fractions: minimum and maximum
Two fractions are given. Find their minimum and maximum.
\InputFile
Two fractions $a / b$ and $c / d$. All numbers are positive integers no more than $10^9$.
\OutputFile
Print first minimum and then maximum fraction.
Input example #1
4/5 2/3
Output example #1
2/3 4/5
Input example #2
7/4 9/5
Output example #2
7/4 9/5