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 |

Madhavan Mukund 2003-05-22

Copyright (c) IARCS 2003-2018; Last Updated: 23 May, 2003