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