N = int(eval(input()))

A = [int(eval(input())) for _ in range(N)]

cnt = 0

for i in range(N):

    if A[i]%2==1:

        cnt += 1

if cnt>0:

    print("first")

else:

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

A = [int(eval(input())) for _ in range(N)]

flag = 0

for i in range(N):

    if A[i]%2==1:

        flag = 1

        break

if flag==1:

    print("first")

else:

    print("second")
N = int(eval(input()))
A = [int(eval(input())) for _ in range(N)]
cnt = 0
for i in range(N):
    if A[i] % 2 == 1:
        cnt += 1
if cnt > 0:
    print("first")
else:
    print("second")

N = int(eval(input()))
A = [int(eval(input())) for _ in range(N)]
flag = 0
for i in range(N):
    if A[i] % 2 == 1:
        flag = 1
        break
if flag == 1:
    print("first")
else:
    print("second")

-cnt = 0 +flag = 0 -        cnt += 1 -if cnt > 0: +        flag = 1 +        break +if flag == 1: