#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ch = char;
const ll MOD = 1000000007;
const ll MOD2 = 998244353;
const ld PI = acos(-1);
const ll INF = 1e18;
struct edge {
  ll to, cost;
};
struct edge2 {
  ll from, to, cost;
};
template <typename T>
bool chmax(T& a, const T& b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <typename T>
bool chmin(T& a, const T& b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int N, K;
  cin >> N >> K;
  vector<ll> A(N);
  for (int i = 0; i < N; i++) {
    cin >> A[i];
  }
  vector<bool> dp(K + 1);
  dp[0] = 0;
  for (int i = 0; i < K; i++) {
    for (int j = 0; j < N; j++) {
      for (int j = 0; j < N; j++) {
        if (i + 1 - A[j] >= 0 && dp[i + 1 - A[j]] == 0) dp[i + 1] = 1;
      }
    }
  }
  cout << (dp[K] ? "first" : "second") << endl;
}
