#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  vector<int> a(101);
  for (int i = 1; i <= n; i++) {
    int x;
    cin >> x;
    a.push_back(x);
  }
  vector<bool> dp(101, false);
  for (int i = 1; i <= n; i++) {
    for (auto j : a) {
      if (j > i) {
        continue;
      } else if (dp[i - j] == 0) {
        dp[i] = 1;
      }
    }
  }
  dp[k] == 1 ? cout << "first" : cout << "second";
  return 0;
}
