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