n = int(input()) a = list(map(int, input().split())) g = 0 for x in a: g ^= x if g > 0: print('First') x = g & -g for i in range(n): if a[i] >= x: print(i + 1, x) if int(input()) == 1: exit() a[i] -= x break else: print('Second') while True: i, x = map(int, input().split()) if int(input()) == 1: exit() a[i-1] -= x x = x & -x for i in range(n): if a[i] >= x: print(i + 1, x) if int(input()) == 1: exit() a[i] -= x break