function myout(text){console.log(text);}//standard output
function Main(input) {
	//input = parseInt(input);
	//input = input.split(" ");
	//input = input.split("\n");
	//input = input.split(" ").map((a)=>Number(a));
	input = input.split("\n").map((a)=>Number(a));
  var N = input[0];
  input.shift();
  var sum = 0;
  for(var i = 0; i < N; i++){
    sum += input[i];
  }
  if(sum % 2 != 0){
     myout("first");
     }else{
     myout("second");
     }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());
