#include <bits/stdc++.h>
using namespace std;
long n, f[100005], k, a[100005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> k;
  for (long i = 1; i <= n; i++) cin >> a[i];
  for (long i = 1; i <= k; i++) {
    for (long j = 1; j <= n; j++) {
      if (i - a[j] >= 0 && f[i - a[j]] == 0) f[i] = 1;
    }
  }
  if (f[k] == 1)
    cout << "first";
  else
    cout << "second";
}
