X,Y=map(int,input().split()) if abs(X-Y)==1: print("Second",flush=True) _,X,Y=input().split() X=int(X) Y=int(Y) 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