import std.stdio;
import std.algorithm;
import std.conv;
import std.datetime;
import std.numeric;
import std.math;
import std.string;

string my_readln() { return chomp(readln()); }

void main()
{//try{
	auto tokens = split(my_readln());
	auto N = to!ulong(tokens[0]);

	ulong[] A;

	foreach (i; 0..N)
	{
		auto tokens2 = split(my_readln());
		A ~= to!ulong(tokens2[0]);
	}

	string ans = "second";

	foreach (e; A)
	{
		if (e % 2 == 1)
		{
			ans = "first";
			break;
		}
	}

	writeln(ans);
	stdout.flush();
/*}catch (Throwable e)
	{
		writeln(e.toString());
	}
readln();*/
}