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