(function (eq, lt, gt) function f(s) local d = tonumber(s:match("(%d+)%s")) - tonumber(s:match("%s(%d+)")) return d==0 and eq or d==math.abs(d) and gt or lt end for _=1,tonumber(io.stdin:read("*l")) do print(f(io.stdin:read("*l"))) end end)("=", string.char(60), string.char(62))