#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, K;
  cin >> N >> K;
  vector<int> a(N);
  for (int i = 0; i < N; i++) {
    cin >> a[i];
  }
  int dp[100100];
  for (int i = 0; i < 100100; i++) {
    dp[i] = 0;
  }
  for (int i = 0; i < N; i++) {
    dp[a[i]] = 1;
  }
  dp[0] = -1;
  for (int x = 0; x < 100100; x++) {
    if (dp[x] != 0) {
      continue;
    }
    bool flag = false;
    for (int i = 0; i < N; i++) {
      if (x - a[i] >= 0) {
        if (dp[x - a[i]] == -1) {
          flag = true;
        }
      }
    }
    if (flag) {
      dp[x] = 1;
    } else {
      dp[x] = -1;
    }
  }
  if (dp[K] == 1) {
    cout << "first" << endl;
  } else {
    cout << "second" << endl;
  }
  return 0;
}
