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