#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, i, j, l = 0;
  cin >> n >> k;
  int a[n], dp[n][k + 1];
  for (i = 0; i < n; i++) {
    cin >> a[i];
    dp[i][0] = 0;
  }
  for (i = 0; i <= k; i++) {
    dp[0][i] = i / a[0];
  }
  for (i = 1; i < n; i++) {
    for (j = 1; j <= k; j++) {
      if (a[i] > j)
        dp[i][j] = dp[i - 1][j];
      else {
        if (dp[i][j - a[i]] % 2 == 0)
          dp[i][j] = 3;
        else {
          l = i - 1;
          dp[i][j] = 2;
          while (l >= 0) {
            if (dp[i][j - a[l]] % 2 == 0) {
              dp[i][j] = 3;
              break;
            }
            l--;
          }
        }
      }
    }
  }
  if (dp[n - 1][k] % 2)
    cout << "first" << endl;
  else
    cout << "second" << endl;
  return 0;
}
