n = int(eval(input()))

a = list(int(eval(input())) for _ in range(n))



cnt = 0

for i in range(n):

    if a[i] % 2 == 0:

        cnt += 1



if cnt == n:

    print("second")

else:

    print("first")
import sys



sys.setrecursionlimit(10 ** 7)

input = sys.stdin.readline

f_inf = float('inf')

mod = 10 ** 9 + 7





def resolve():

    n = int(eval(input()))

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



    for a in A:

        if a % 2 != 0:

            print("first")

            break

    else:

        print("second")





if __name__ == '__main__':

    resolve()

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

import sys

sys.setrecursionlimit(10**7)
input = sys.stdin.readline
f_inf = float("inf")
mod = 10**9 + 7


def resolve():
    n = int(eval(input()))
    A = list(int(eval(input())) for _ in range(n))
    for a in A:
        if a % 2 != 0:
            print("first")
            break
    else:
        print("second")


if __name__ == "__main__":
    resolve()

-n = int(eval(input())) -a = list(int(eval(input())) for _ in range(n)) -cnt = 0 -for i in range(n): -    if a[i] % 2 == 0: -        cnt += 1 -if cnt == n: -    print("second") -else: -    print("first") +import sys + +sys.setrecursionlimit(10**7) +input = sys.stdin.readline +f_inf = float("inf") +mod = 10**9 + 7 + + +def resolve(): +    n = int(eval(input())) +    A = list(int(eval(input())) for _ in range(n)) +    for a in A: +        if a % 2 != 0: +            print("first") +            break +    else: +        print("second") + + +if __name__ == "__main__": +    resolve()