Let us define Jacana numbers in the following way:
\begin{eqnarray\*} J (n, 1) & = & n \text{,} \\\ J (n, k) & = & n^{J (n, k - 1)} \text{ for $k > 1$.} \\\ \end{eqnarray\*}
We have two Jacana numbers: J(n,a) and J(m,b). Your task is to compare them.
The first line of input contains an integer T, the number of test cases (1≤T≤104).
Each test case contains four integers: n, a, m, and b (1≤n,a,m,b≤109).
For each test case, print a single line containing a single character:
>",="', and<".