#include<bits/stdc++.h>
using namespace std;
#define MOD 1000000007

int main() {
  
  int N;
  cin >> N;

  
  for(int i = 0;i < N;i++) {
    int a;
    cin >> a;
    if(a%2!=0) {
      cout << "first" << endl;
      return 0;
    }
  }

  cout << "second" << endl;

  
}
