def f(n): return n in {2,3,17,37} or n%34 in {7,11,23,27,31} for _ in range(int(input())): a,b = map(int,input().split()) print("Second" if f(a) and f(b) else "First")