#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;

int main() {
	int N;
	cin >> N;
	vector<int> a(N);
	for (int& i : a) cin >> i;
	if (all_of(a.begin(), a.end(), [](int& a) { return a % 2 == 0; })) cout << "second";
	else cout << "first";
}