import sys
input = sys.stdin.readline

A=list(map(int,input().split()))

if min(A)%2==1 and max(A)==min(A)+1:
    print("Second",flush=True)
else:
    print("First",flush=True)

while True:
    if A[0]==A[1]:
        print("B",flush=True)
    elif A[0]==0:
        print("A",2,A[1],flush=True)
        A[1]=0
    elif A[1]==0:
        print("A",1,A[0],flush=True)
        A[0]=0
    else:
        if A[0]%2==1 and A[1]>A[0]+1:
            print("A",2,A[1]-(A[0]+1),flush=True)
            A[1]=A[0]+1
            
        elif A[0]%2==0 and A[1]>A[0]-1:
            print("A",2,A[1]-(A[0]-1),flush=True)
            A[1]=A[0]-1

        elif A[1]%2==1 and A[0]>A[1]+1:
            print("A",1,A[0]-(A[1]+1),flush=True)
            A[0]=A[1]+1
            
        elif A[1]%2==0 and A[0]>A[1]-1:
            print("A",1,A[0]-(A[1]-1),flush=True)
            A[0]=A[1]-1

    ans=input().strip()
    if ans=="C" or ans=="D":
        exit()

    com,x,y=ans.split()
    x=int(x)-1
    y=int(y)

    A[x]-=y