Size Comparison
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 512 M,其他语言1024 M
64bit IO Format: %lld

题目描述

Generally speaking, clothing sizes are divided into three types: \texttt{L} , \texttt{M}, and \texttt{S}, representing Large, Medium, and Small, respectively. However, due to significant differences in human height, sizes are further subdivided by adding one or more \texttt{X}s in front of \texttt{L} and \texttt{S} to indicate larger or smaller sizes. For example, \texttt{XS} is one size smaller than \texttt{S}, \texttt{XXS} is one size smaller than \texttt{XS}, while \texttt{XL} is one size larger than \texttt{L}, \texttt{XXL} is one size larger than \texttt{XL}, and so on.

Sometimes, for the sake of simplicity, when there are two or more \texttt{X}s in front of a size, it will be abbreviated in the format of  number of \texttt{X}s + \texttt{XL} or \texttt{XS}. For example, \texttt{XXXL} will be abbreviated as \texttt{3XL}, and \texttt{XXXXS} will be abbreviated as \texttt{4XS}.

Next, you will be given T pairs of sizes. You need to compare the two sizes in each pair.

输入描述:

The first line contains a positive integer T (1 \le T \le 10^4).

The following T lines each contain two space-separated strings, representing the sizes. It is guaranteed that each string is a valid size representation and its length does not exceed 10.

输出描述:

Output T lines. If the first size is larger than the second size, output \texttt{Bigger}; if the first size is equal to the second size, output \texttt{Equal}; if the first size is smaller than the second size, output \texttt{Smaller}.
示例1

输入

复制
6
M M
XL XXL
XS S
XL L
3XL XXXL
100000XL 99999XL

输出

复制
Equal
Smaller
Smaller
Bigger
Equal
Bigger