open System let eq = char 61 let lt = char 60 let mt = char 62 let read() = let t = Array.map (int) (Console.ReadLine().Split()) in t.[0],t.[1] let N = int (Console.ReadLine()) for i in 1..N do let a,b = read() if compare a b = 0 then printfn "%c" eq elif compare a b = -1 then printfn "%c" lt else printfn "%c" mt