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