Fractions: minimum and maximum
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Two fractions are given. Find their minimum and maximum.
Input
Two fractions and . All numbers are positive integers no more than .
Output
Print first minimum and then maximum fraction.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 2K
Acceptance rate 42%