#include <bits/stdc++.h>
using namespace std;
long long INF = 1e9 + 7;
long long mod = 100000;
long long dx[4] = {1, 0, -1, 0};
long long dy[4] = {0, 1, 0, -1};
bool dp[100005];
signed main() {
  long long N, K;
  cin >> N >> K;
  vector<long long> a(N);
  for (long long i = 0; i < N; i++) {
    cin >> a[i];
  }
  for (long long i = 0; i <= K; i++) {
    for (long long j = 0; j < N; j++) {
      if (i - a[j] >= 0) {
        if (dp[i - a[j]] == false) {
          dp[i] = true;
        }
      }
    }
  }
  if (dp[K]) {
    cout << "first" << endl;
  } else {
    cout << "second" << endl;
  }
}
