Mirror World

Uttara University Binary...
Limits 3s, 512 MB

Imagine a world inside mirror, where everything becomes reverse. Left hand becomes right hand, right hand becomes left hand. Mirror people read Arabic from left to write but they read English from right to left. In that world they have their own way of writing numbers as well. Fortunately, their numbers contain same digits (0,1,2,3,4,5,6,7,8 and 9) as our world, but they write it in a little bit different way than us. We write the digits of a number from left to right, but mirror people write it from right to left.

For example, we write Twenty-Three as 23, but in mirror world Twenty-Three is written as 32. Note that, 001 is written as 100 in its mirror.

When we compare two numbers, sometimes the result in our world and in mirror world remains same, sometimes it is different. For example, 423 is smaller number than 395 both in our world and mirror world. Again 423 is smaller than 982 in our world, but in mirror world 423 is larger than 982.

You’ll be given a pair of numbers of our real world, your task is to put an appropriate sign (>, < or =) between them considering the comparison process of mirror world.

Input

First line consists of number of test cases T, each of the next T lines contain a pair of positive integers.

Solution for 0 ≤ M, N ≤ 105 is 20 points.

Solution for 0 ≤ M ≤ 10500, 0 ≤ N ≤ 10500 is 80 points.

Output

For each line of input, produce one-line output by adding the appropriate sign between M and N.

Put spaces between the numbers and the symbols.

Sample

InputOutput
3
423 395
423 982
423 423

423 < 395
423 > 982
423 = 423