x =[0,0,0,0,1,1,2,0,3,1,1,0,3,3,2,2,4,0,5,2,2,3,3,0,1,1,3,0,2,1,1,0,4,5,2,7,4,0,1,1,2,0,3,1,1,0,3,3,2,2,4,4,5,5,2] y =[3,3,0,1,1,3,0,2,1,1,0,4,5,3,7,4,8,1,1,2,0,3,1,1,0,3,3,2,2,4,4,5,5,9] for _ in range(int(input())): a, b = map(int, input().split()) g = 0 for c in (a, b): if c < len(x): g ^= x[c] else: g ^= y[(c - len(x)) % len(y)] print('First' if g else 'Second')