#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  vector<int> vec;
  cin >> n >> k;
  int num;
  int result[100000] = {0};
  for (int i = 0; i < n; ++i) {
    cin >> num;
    vec.push_back(num);
  }
  for (int i = 0; i <= k; ++i) {
    result[i] = 1;
  }
  for (int i = vec.front(); i <= k; ++i) {
    for (auto ele : vec) {
      if (i >= ele) {
        if (result[i - ele] == 1) {
          result[i] = 0;
          break;
        }
      }
    }
  }
  cout << ((result[k] == 0) ? "first" : "second") << endl;
  return 0;
}
