#include <iostream>
using namespace std;

int main() {
	int N;
	cin >> N;
	bool ans = true;
	for (int i = 0; i < N; i++) {
		int a;
		cin >> a;
		if (a % 2 == 1) ans = false;
	}
	cout << (ans ? "second" : "first") << endl;
}
