function Main(input) {
	input = input.split("\n").map(Number);
  input.shift();
  var flag = true;
  for(var i=0;i<input.length;i++){
    if(input[i]%2==1) flag = false;
  }
  if(!flag){
  console.log("first")
  }else{
  console.log("second")
  }
}Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());