Generally speaking, clothing sizes are divided into three types:

,

, and

, representing Large, Medium, and Small, respectively. However, due to significant differences in human height, sizes are further subdivided by adding one or more

s in front of

and

to indicate larger or smaller sizes. For example,

is one size smaller than

,

is one size smaller than

, while

is one size larger than

,

is one size larger than

, and so on.
Sometimes, for the sake of simplicity, when there are two or more

s in front of a size, it will be abbreviated in the format of number of

s +

or

. For example,

will be abbreviated as

, and

will be abbreviated as

.
Next, you will be given

pairs of sizes. You need to compare the two sizes in each pair.