#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9 + 7;
int main() {
  long long int n, k;
  cin >> n >> k;
  long long int a[n];
  for (long long int i = 0; i < n; i++) {
    cin >> a[i];
  }
  bool dp[k + 1];
  dp[0] = false;
  for (long long int i = 1; i < k + 1; i++) {
    bool flag = false;
    for (long long int j = 0; j < n; j++) {
      if (i == a[j])
        flag = true;
      else if (i - a[j] > 0)
        flag += !(dp[i - a[j]] == true);
      if (flag) break;
    }
    dp[i] = flag;
  }
  if (dp[k])
    cout << "first";
  else
    cout << "second";
}
