n,k = map(int,input().split())
aa = list(map(int,input().split()))

win = [0]*(k+1)
for i in range(min(aa)):
  win[i] = -1

for i in range(1,k+1):
  if i in aa:
    win[i] = 1
  
  for ai in aa:
    if i+ai < k+1:
      win[i+ai] = -win[i]  

if win[k]>0:
  print('first')  
else:
  print('second')