#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, k;
  cin >> n >> k;
  vector<int> arr(n);
  bool dp[k + 1];
  memset(dp, false, sizeof(dp));
  for (int i = 0; i < n; i++) cin >> arr[i];
  for (int i = 0; i <= k; i++) {
    for (int j = 0; j < n; j++) {
      if (i - arr[j] >= 0) {
        if (dp[i - arr[j]] == false) {
          dp[i] = true;
          break;
        }
      }
    }
  }
  cout << ((dp[k] == false) ? "second" : "first") << "\n";
  return 0;
}
