program main
implicit None
	integer::n,i,t1,a1,k
	real::a,t
	real,allocatable::h(:)
	
	read *,n
	read *,t,a
	allocate(h(n))
	
	read *,h
	
	h = a - t + h*0.006
	
	k = 1
	do i = 1,n
		if(abs(h(i)) < abs(h(k))) k = i
	enddo
	
	print 101,k
	
101 format(i0)
end program main