implicit none
integer,parameter :: PREC=8
integer :: n
integer,allocatable :: h(:)
integer :: i,mi
real(PREC) :: a,t,m

read *,n
read *,t,a
allocate(h(n))
read *,(h(i),i=1,n)

m = abs(a - (t - h(1) * 0.006))
mi = 1
do i = 2, n
   if (abs(a - (t - h(i) * 0.006)) < m) mi = i
enddo

print '(i0)',mi
end