#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main()
{
    ll n,k;
    cin>>n>>k;
    ll a[n];
    ll dp[k+1]={-1};
    memset(dp,-1,sizeof(dp));
    for(ll i=0;i<n;i++)
    {
    cin>>a[i];
    dp[a[i]]=1;
    }
    
    dp[0]=0;
    
    for(ll i=1;i<=k;i++)
    {  //cout<<i<<" "<<dp[i]<<endl;
        if(dp[i]==-1)
        {
            dp[i]=0;
            for(ll j=0;j<n;j++)
            {
                if(i-a[j]>0 && dp[ i-a[j] ]==0)
                {
                    dp[i]=1;
                    break;
                }
            }
        }
       // cout<<i<<" "<<dp[i]<<endl;
    }
    if(dp[k]==1)
    cout<<"first"<<endl;
    else
    cout<<"second"<<endl;
    
    
}
