program ABC113B
    implicit none
    integer(8)::i
    integer(8)::N
    integer(8)::t_place
    real::T,A
    real::t_best
    real,allocatable,dimension(:)::H

    read(5,*)N
    read(5,*)T,A
    allocate(H(N))
    read(5,*)(H(i),i=1,N)
    
    do i=1,N
        if(i==1)then
            t_best=abs(A-(T-0.006*H(i)))
            t_place=i
        else if(abs(A-(T-0.006*H(i)))<t_best)then
            t_best=abs(A-(T-0.006*H(i)))
            t_place=i
        end if
    end do
    
    print'(i0)',t_place

end program ABC113B