#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P=pair<int,int>;

int n;

int main() {
	cin >> n;
	for (int i = 0; i < n; ++i) {
		int a;
		cin >> a;
		if (a & 1) {
			cout << "first" << endl;
			return 0;
		}
	}
	cout << "second" << endl;
}
