#include <bits/stdc++.h>

using namespace std;

int main() {
	int n;
	cin >> n;
	int a, b = 0;
	for (int i = 0; i < n; i++)
		scanf("%d", &a), b |= a;
	cout << (b % 2 ? "first" : "second") << endl;
	return 0;
}
