unittest
{
	assert( [ "2", "1", "2" ].parse.expand.solve == "first" );
	assert( [ "3", "100000", "30000", "20000" ].parse.expand.solve == "second" );
}



import std.algorithm;
import std.conv;
import std.range;
import std.stdio;
import std.typecons;

void main()
{
	stdin.byLineCopy.parse.expand.solve.writeln;
}

auto parse( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	auto n = input.front.to!( long );
	auto as = new long[ n ];
	foreach( ref a; as )
	{
		input.popFront;
		a = input.front.to!( long );
	}
	return tuple( as );
}

auto solve( long[] as )
{
	return as.count!( ( a ) => a % 2 == 1 ) ? "first" : "second";
}
