N = int(eval(input()))

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



if all([a%2==0 for a in As]):

    print('second')

else:

    print('first')
import sys

def input(): return sys.stdin.readline().strip()

def mapint(): return list(map(int, input().split()))

sys.setrecursionlimit(10**9)



N = int(eval(input()))

As = [True if int(eval(input()))%2==0 else False for _ in range(N)]



if all(As):

    print('second')

else:

    print('first')

N = int(eval(input()))
As = [int(eval(input())) for _ in range(N)]
if all([a % 2 == 0 for a in As]):
    print("second")
else:
    print("first")

import sys


def input():
    return sys.stdin.readline().strip()


def mapint():
    return list(map(int, input().split()))


sys.setrecursionlimit(10**9)
N = int(eval(input()))
As = [True if int(eval(input())) % 2 == 0 else False for _ in range(N)]
if all(As):
    print("second")
else:
    print("first")

+import sys + + +def input(): +    return sys.stdin.readline().strip() + + +def mapint(): +    return list(map(int, input().split())) + + +sys.setrecursionlimit(10**9) -As = [int(eval(input())) for _ in range(N)] -if all([a % 2 == 0 for a in As]): +As = [True if int(eval(input())) % 2 == 0 else False for _ in range(N)] +if all(As):