#include<bits/stdc++.h>
#include<iostream>
using namespace std;

int n,k;
set<int> s;
string solve(int k){

	bool dp[k+1] = {0};

	for(int i=1;i<=k;i++){
		for(int move:s){
			if(move>i)
				continue;	
			if(dp[i-move] == 0)
				dp[i] = 1;
		}
	}

	return dp[k] ? "first" : "second" ;
}

int main(){

	#ifndef ONLINE_JUDGE
    	// for getting input from input.txt
    	freopen("input.txt", "r", stdin);
    	// for writing output to output.txt
    	freopen("output.txt", "w", stdout);
	#endif

   ios_base::sync_with_stdio(false);
        cin.tie(NULL);


        cin>>n>>k;
        for(int i=1;i<=n;i++){
        	int x;cin>>x;
        	s.insert(x);
        }


        cout<<solve(k)<<endl;

}