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