import sequtils,strutils,math var N = stdin.readline.parseInt a,b,c : int n : int for i in 1..N: (a, b) = stdin.readline.split.map(parseInt) c = b - a if c == 0: n = 61 elif c div abs(c) == 1: n = 60 else: n = 62 echo $chr(n)