let n = Scanf.sscanf (read_line ()) "%d" @@ fun n -> n
let a = Array.init n @@ fun _ -> Scanf.sscanf (read_line ()) "%d" @@ fun a -> a

let () = print_endline @@ if Array.for_all (fun i -> i mod 2 = 0) a then "second" else "first"