n = int(eval(input()))

for i in range(n):

    a = int(eval(input()))

    if a%2 == 1:

        print('first')

        exit()

else:

    print('second')

n = int(eval(input()))

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



for a in A:

    if a != 1:

        break

else:

    print('first')

    exit()



cnt = 0

for a in A:

    if a%2 == 0:

        cnt += 1

if cnt == 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()
else:
    print("second")

n = int(eval(input()))
A = [int(eval(input())) for _ in range(n)]
for a in A:
    if a != 1:
        break
else:
    print("first")
    exit()
cnt = 0
for a in A:
    if a % 2 == 0:
        cnt += 1
if cnt == n:
    print("second")
else:
    print("first")

-for i in range(n): -    a = int(eval(input())) -    if a % 2 == 1: -        print("first") -        exit() +A = [int(eval(input())) for _ in range(n)] +for a in A: +    if a != 1: +        break +    print("first") +    exit() +cnt = 0 +for a in A: +    if a % 2 == 0: +        cnt += 1 +if cnt == n: +else: +    print("first")