
# slower version:

s = input()
for i in range(len(s)):
  if i%2 == 0:
    print(s[i], end = '')


# optimized version of the same code:

s = input()
ans = ''
for i in range(len(s)):
  if i % 2 == 0:
    ans += s[i]
print(ans)



# slower version:

import sys

input = sys.stdin.readline

from collections import *



def dfs(x, y):

    if x==0 and y==0:

        t[x][y] = False

        return False

    

    if x>=1:

        t[x][y] |= not dfs(x-1, y)

        

    if y>=1:

        t[x][y] |= not dfs(x, y-1)

        

    if min(x, y)>=1:

        t[x][y] |= not dfs(x-1, y-1)

   

    return t[x][y]

    

t = [[False]*7 for _ in range(7)]



for i in range(7):

    for j in range(7):

        dfs(i, j)



"""

for ti in t:

    print(*ti)

"""



N = int(eval(input()))

flag = True



for _ in range(N):

    a = int(eval(input()))

    

    if a%2==1:

        flag = False

        

if flag:

    print('second')

else:

    print('first')

# optimized version of the same code:

import sys

input = sys.stdin.readline



"""

def dfs(x, y):

    if x==0 and y==0:

        return False

        

    res = False

    

    if x>0:

        res |= not dfs(x-1, y)

    

    if y>0:

        res |= not dfs(x, y-1)

    

    if min(x, y)>0:

        res |= not dfs(x-1, y-1)

    

    return res

    

t = [[False]*5 for _ in range(5)]



for i in range(5):

    for j in range(5):

        t[i][j] = dfs(i, j)



for ti in t:

    print(*ti)

"""



N = int(eval(input()))

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



for ai in a:

    if ai%2==1:

        print('first')

        exit()



print('second')
import sys

input = sys.stdin.readline
from collections import *


def dfs(x, y):
    if x == 0 and y == 0:
        t[x][y] = False
        return False
    if x >= 1:
        t[x][y] |= not dfs(x - 1, y)
    if y >= 1:
        t[x][y] |= not dfs(x, y - 1)
    if min(x, y) >= 1:
        t[x][y] |= not dfs(x - 1, y - 1)
    return t[x][y]


t = [[False] * 7 for _ in range(7)]
for i in range(7):
    for j in range(7):
        dfs(i, j)
"""
for ti in t:
    print(*ti)
"""
N = int(eval(input()))
flag = True
for _ in range(N):
    a = int(eval(input()))
    if a % 2 == 1:
        flag = False
if flag:
    print("second")
else:
    print("first")

import sys

input = sys.stdin.readline
"""
def dfs(x, y):
    if x==0 and y==0:
        return False
    res = False
    if x>0:
        res |= not dfs(x-1, y)
    if y>0:
        res |= not dfs(x, y-1)
    if min(x, y)>0:
        res |= not dfs(x-1, y-1)
    return res
t = [[False]*5 for _ in range(5)]
for i in range(5):
    for j in range(5):
        t[i][j] = dfs(i, j)
for ti in t:
    print(*ti)
"""
N = int(eval(input()))
a = [int(eval(input())) for _ in range(N)]
for ai in a:
    if ai % 2 == 1:
        print("first")
        exit()
print("second")

-from collections import * - - +""" -    if x == 0 and y == 0: -        t[x][y] = False +    if x==0 and y==0: -    if x >= 1: -        t[x][y] |= not dfs(x - 1, y) -    if y >= 1: -        t[x][y] |= not dfs(x, y - 1) -    if min(x, y) >= 1: -        t[x][y] |= not dfs(x - 1, y - 1) -    return t[x][y] - - -t = [[False] * 7 for _ in range(7)] -for i in range(7): -    for j in range(7): -        dfs(i, j) -""" +    res = False +    if x>0: +        res |= not dfs(x-1, y) +    if y>0: +        res |= not dfs(x, y-1) +    if min(x, y)>0: +        res |= not dfs(x-1, y-1) +    return res +t = [[False]*5 for _ in range(5)] +for i in range(5): +    for j in range(5): +        t[i][j] = dfs(i, j) -flag = True -for _ in range(N): -    a = int(eval(input())) -    if a % 2 == 1: -        flag = False -if flag: -    print("second") -else: -    print("first") +a = [int(eval(input())) for _ in range(N)] +for ai in a: +    if ai % 2 == 1: +        print("first") +        exit() +print("second")