The first line is an integer M,
,
indicating the number of fractions in this input test sequence. This
is followed by M lines of input, each containing a pair of
integers
and
separated by a space,
representing the numerator and denominator of the input fraction,
respectively. You are guaranteed that
and
.
Here is what the input would look like if the sequence consisted of
the two examples and
discussed
earlier.
2 2 101 322 479 |