#include <bits/stdc++.h>
using namespace std;
int dp[100005][104], arr[110];
int n, k;
int main() {
  for (int i = 0; i <= 105; i++) dp[0][i] = 1;
  cin >> n >> k;
  for (int i = 1; i <= n; i++) scanf("%d", &arr[i]);
  for (int i = 1; i <= k; i++) {
    for (int j = 1; j <= n; j++) {
      if (i - arr[j] < 0)
        dp[i][j] = 1;
      else {
        int tt = -1;
        for (int kk = 1; kk <= n; kk++) {
          if (dp[i - arr[j]][kk] == -1) {
            tt = 1;
            break;
          }
        }
        dp[i][j] = tt;
      }
    }
  }
  for (int i = 1; i <= n; i++) {
    if (dp[k][i] == -1) {
      printf("first\n");
      return 0;
    }
  }
  printf("second\n");
  return 0;
}
