X,Y=map(int,input().split()) if abs(X-Y)==1 and min(x,y)%2==1: print("Second",flush=True) t,*s=input().split() if s[0]=="1": X-=int(s[1]) else: Y-=int(s[1]) else: print("First",flush=True) while True: if X==Y: print("B",flush=True) break if X==0: print("A",2,Y,flush=True) break if Y==0: print("A",1,X,flush=True) break if X