def main():

  n=int(eval(input()))

  for _ in range(n):

    a=int(eval(input()))

    if a&1:

      return "first"

  return "second"



ans=main()

print(ans)
import sys

input = sys.stdin.readline

N = int(eval(input()))

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



odd = sum(a % 2 == 1 for a in A)



if odd == 0:

    ans = "second"

else:

    ans = "first"



print(ans)

def main():
    n = int(eval(input()))
    for _ in range(n):
        a = int(eval(input()))
        if a & 1:
            return "first"
    return "second"


ans = main()
print(ans)

import sys

input = sys.stdin.readline
N = int(eval(input()))
A = [int(eval(input())) for _ in range(N)]
odd = sum(a % 2 == 1 for a in A)
if odd == 0:
    ans = "second"
else:
    ans = "first"
print(ans)

-def main(): -    n = int(eval(input())) -    for _ in range(n): -        a = int(eval(input())) -        if a & 1: -            return "first" -    return "second" +import sys - -ans = main() +input = sys.stdin.readline +N = int(eval(input())) +A = [int(eval(input())) for _ in range(N)] +odd = sum(a % 2 == 1 for a in A) +if odd == 0: +    ans = "second" +else: +    ans = "first"