#include <iostream>

using namespace std;

int n;
int x;

int main() {
	cin >> n;
	bool ok = false;
	for (int i = 1; i <= n; i++) {
		cin >> x;
		if (x%2 == 1) ok = true;
	}
	if (ok) cout << "first\n";
	else cout << "second\n";
}