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