print(("second" if all(int(eval(input()))%2 == 0 for i in range(int(eval(input())))) else 'first'))

import sys

print(('second' if all(i%2==0 for i in list(map(int,sys.stdin))[1:]) else 'first'))
print(
    (
        "second"
        if all(int(eval(input())) % 2 == 0 for i in range(int(eval(input()))))
        else "first"
    )
)

import sys

print(("second" if all(i % 2 == 0 for i in list(map(int, sys.stdin))[1:]) else "first"))

-print( -    ( -        "second" -        if all(int(eval(input())) % 2 == 0 for i in range(int(eval(input())))) -        else "first" -    ) -) +import sys + +print(("second" if all(i % 2 == 0 for i in list(map(int, sys.stdin))[1:]) else "first"))