Jacana Numbers
시간 제한1초메모리 제한512 MB
반복 거듭제곱으로 만든 두 탑 J(n,a)와 J(m,b)의 대소를 비교한다. n, a, m, b는 1e9 이하이다.
문제
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: and . Your task is to compare them.
입력
The first line of input contains an integer , the number of test cases ().
Each test case contains four integers: , , , and ().
출력
For each test case, print a single line containing a single character:
- if , output "
>", - if , output "
="', and - if , output "
<".