#include <bits/stdc++.h>
#define ll long long
#define fop(i,m,n) for(ll i=m;i<n;i++)
using namespace std;
int main(){
	ll n, k;
	cin >> n >> k;
	vector <ll> v;
	fop(i,0,n){
		ll x;
		cin >> x;
		v.push_back(x);
	}
	bool win[k+1] = {};
	fop(i,1,k+1){
		fop(j,0,n){
			if(i >= v[j] && !win[i - v[j]]){
				win[i] = true;
				break;
			}
		}
	}
	if(win[k]) cout << "first";
	else cout << "second"; 
}