#include <bits/stdc++.h>
using namespace std;
int a[400000], b[300000], dp[300000];
int main() {
  ios_base::sync_with_stdio(false);
  int j, n, m, k, m1, m2, a1, a2, l = 1, t, cnt = 0, mn, h = 0, mod = 1e8 + 7,
                                  i;
  int tc = 0;
  tc++;
  cin >> n >> k;
  for (i = 1; i <= n; i++) cin >> a[i];
  for (i = 1; i <= k; i++) {
    dp[i] = 1;
    for (j = 1; j <= n; j++) {
      if (i - a[j] >= 0) dp[i] &= dp[i - a[j]];
    }
    dp[i] = 1 - dp[i];
  }
  dp[k] ? cout << "first" << endl : cout << "second" << endl;
  return 0;
}
