#include <bits/stdc++.h>
using namespace std;
bool dp[100005] = {};
int main() {
  int n, k;
  scanf("%d%d.0", &n, &k);
  vector<int> arr(n);
  for (int& x : arr) scanf("%d", &x);
  sort(arr.begin(), arr.end());
  for (int stones = 0; stones < k; stones++) {
    for (int i = 0; i < n; i++)
      if (arr[i] + stones <= k && !dp[stones]) dp[stones + arr[i]] = true;
  }
  if (dp[k])
    printf("first\n");
  else
    printf("second\n");
  return 0;
}
