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