#include<bits/stdc++.h>
using namespace std;
signed main(){
  int n,l=0,sum=0;
  int a;
  cin>>n;
  for(int i=0;i<n;i++){
    cin>>a;
    if(a%2==1) l++;
  }
  if(l) cout<<"first\n";
  else cout<<"second\n";
}