# written by ChatGPT o4-mini-high (really sorry) N = int(input().strip()) A = list(map(int, input().split())) K = 10**9 xor_all = 0 for a in A: xor_all ^= a if xor_all != 0: print("First", flush=True) my_turn = True else: # こっちはOK firstがなんかバグってる? print("Second", flush=True) my_turn = False while True: if my_turn: xor_all = 0 for a in A: xor_all ^= a for i, a in enumerate(A): t = a ^ xor_all if t < a: x = a - t if x <= K: idx = i break else: for i, a in enumerate(A): if 1 <= a <= K: x = a idx = i break A[idx] -= x K = x print(idx+1, x, flush=True) ret = int(input().strip()) if ret != 0: exit(0) my_turn = False else: line = input() if not line: exit(0) try: j, x = map(int, line.split()) ret = int(input().strip()) A[j-1] -= x K = x if ret == -1: exit(0) my_turn = True except: exit(0)