#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  scanf("%d %d", &n, &k);
  vector<int> A(n + 1);
  for (int i = 0; i < n; i++) {
    scanf("%d", &A[i]);
  }
  vector<bool> dp(k + 5, false);
  for (int val = 1; val <= k; val++) {
    for (int i = 0; i < n; i++) {
      if (val - A[i] >= 0) {
        dp[val] = dp[val] | !(dp[val - A[i]]);
      }
    }
  }
  if (dp[k])
    printf("first\n");
  else
    printf("second\n");
  return 0;
}
