N = int(eval(input()))

A = []

Even_count = 0

for i in range(N):

    a = int(eval(input()))

    if a % 2 == 0:

        Even_count += 1

    A.append(a)

if Even_count == N:

    print("second")

else:

    print("first")
N = int(eval(input()))

for i in range(N):

    a = int(eval(input()))

    if a % 2 == 1:

        print("first")

        exit()

print("second")
N = int(eval(input()))
A = []
Even_count = 0
for i in range(N):
    a = int(eval(input()))
    if a % 2 == 0:
        Even_count += 1
    A.append(a)
if Even_count == N:
    print("second")
else:
    print("first")

N = int(eval(input()))
for i in range(N):
    a = int(eval(input()))
    if a % 2 == 1:
        print("first")
        exit()
print("second")

-A = [] -Even_count = 0 -    if a % 2 == 0: -        Even_count += 1 -    A.append(a) -if Even_count == N: -    print("second") -else: -    print("first") +    if a % 2 == 1: +        print("first") +        exit() +print("second")