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