X = list(map(int, input().split())) def f(): res = input().split() if res[0] == "A": X[int(res[1]) - 1] -= int(res[2]) elif res[0] == "B": exit() else: exit() def ask(Q, i=None, j=None): global X if Q == "A": print("A", i, j, flush=True) X[i - 1] -= j else: print("B", flush=True) X = [0, 0] f() if abs(X[0] - X[1]) == 1 and min(X) % 2 == 1: print("Second", flush=True) f() else: print("First", flush=True) while 1: if X[0] == X[1]: ask("B") else: if X[0] <= X[1]: t = 0 else: t = 1 if X[t] % 2 == 0: ask("A", t + 1, X[1 - t] - X[t] - 1) else: ask("A", t + 1, X[1 - t] - X[t] + 1)