N = int(eval(input()))

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



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

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

a = list(set(a))

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

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

-N = int(eval(input())) -a = [int(eval(input())) for _ in range(N)] -print(("second" if all(a[i] % 2 == 0 for i in range(N)) else "first")) +n = int(eval(input())) +a = list(int(eval(input())) % 2 for _ in range(n)) +a = list(set(a)) +print(("second" if a == [0] else "first"))