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