#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  vector<int> v(n);
  for (int i = 0; i < n; i++) cin >> v[i];
  vector<bool> dp(k + 1, false);
  for (int i = 0; i <= k; i++) {
    for (int j = 0; j < n; j++) {
      if (i - v[j] < 0)
        break;
      else if (!dp[i - v[j]])
        dp[i] = true;
    }
  }
  if (dp[k])
    cout << "first" << endl;
  else
    cout << "second" << endl;
  return 0;
}
