program main
    use,intrinsic :: iso_fortran_env
    implicit none
    integer(int32):: n,i,a

    read*, n
    do i=1,n
        read*, a
        if (btest(a,0)) then
            print'(a)', "first"
            stop
        end if
    end do
    print'(a)', "second"
end program main