for _ in range(int(input())): a,b = map(int,input().split()) print("First" if (a-2)%5>=2 or (b-2)%5>=2 else "Second")