import sys input = sys.stdin.readline GR=[0]*1000 def grundy(x): if x<=3: return 0 SET=set() for i in range(2,x-1): SET.add(GR[i]^GR[x-i]) for i in range(10000): if i in SET: True else: GR[x]=i return i for i in range(1000): grundy(i) def g(x): if x<1000: return GR[x] else: y=x//34 return GR[x%34+2*34] T=int(input()) for tests in range(T): a,b=map(int,input().split()) if g(a)^g(b)!=0: print("First") else: print("Second")