#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e+18 + 1;
const long long MOD = 1000000007LL;
string abc = "abcdefghijklmnopqrstuvwxyz";
string ABC = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
int main() {
  long long n, k;
  cin >> n >> k;
  vector<long long> a(n);
  for (long long i = 0; i < (long long)(n); i++) cin >> a[i];
  long long dp[110];
  dp[0] = 0;
  for (long long i = 1; i <= k; i++) {
    for (long long j = 0; j < (long long)(n); j++)
      if (i - a[j] >= 0 && dp[i - a[j]] == 0) dp[i] = 1;
  }
  if (dp[k])
    cout << "first" << endl;
  else
    cout << "second" << endl;
}
