#include <bits/stdc++.h>
using namespace std;
void Open() {
  freopen("Input.txt", "r", stdin);
  freopen("Output.txt", "w", stdout);
}
long long gcd(long long a, long long b) { return b == 0 ? a : gcd(b, a % b); }
void madesetprobblem() {}
int n, k, *a;
int dp[100001][3];
int ans(int x, int p) {
  int& ret = dp[x][p];
  if (~ret) return ret;
  ret = !p;
  for (int i = 0; i < n; i++) {
    if (x - a[i] >= 0) {
      if (ans(x - a[i], !p) == p) ret = p;
    }
  }
  return ret;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  memset(dp, -1, sizeof(dp));
  cin >> n >> k;
  a = new int[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  cout << (ans(k, 0) ? "second" : "first");
}
