program CADDiB2018D
    implicit none
    integer(8)N,C,i
    integer(8),allocatable::A(:)
    read*,N
    allocate(A(N))
    read*,A
    C=0
    do i=1,N
        if(mod(A(i),2)==1)then
            C=1
            exit
        end if
    end do
    if(C==0)print'(A)',"second"
    if(C==1)print'(A)',"first"
end program CADDiB2018D