#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, i, j;
  cin >> n >> k;
  int a[n];
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  int dp[k + 1];
  dp[0] = 2;
  int c;
  for (i = 1; i < k + 1; i++) {
    c = 0;
    for (j = 0; j < n; j++) {
      if (i - a[j] >= 0 && dp[i - a[j]] == 2) {
        c++;
        dp[i] = 1;
        break;
      }
    }
    if (c == 0) dp[i] = 2;
  }
  if (dp[k] == 2)
    cout << "second" << endl;
  else
    cout << "first" << endl;
  return 0;
}
