#include <bits/stdc++.h>

bool solve();

int main()
{
	if (solve())
		printf("first\n");
	else
		printf("second\n");

	return 0;
}

bool solve()
{
	int n;
	scanf("%d", &n);
	for (int i = 0; i < n; i++)
	{
		int a;
		scanf("%d", &a);
		if (a & 1) return true;
	}
	return false;
}