Fractions: minimum and maximum#9428

Fractions: minimum and maximum

1 second
128 megabytes
Very easy

Two fractions are given. Find their minimum and maximum.

Input

Two fractions and . All numbers are positive integers no more than 10^9.

Output

Print first the minimum fraction, then the maximum fraction.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading