program TEST
	! your code goes here

integer::n,t1,h(100000),i,x
real::t2(100000),t3(100000),a,t4
read(*,*)n
read(*,*)t1,a
read(*,*)h(100000)

do i=1,n
t2(i)=t1-0.006*h(i)
t3(i)=(a-t2(i))**2
end do
write(*,*)t3(2)
x=0
t4=100000000
do i=1,n
if (t4>t3(i)) then
x=i
t4=t3(i)
endif
end do

write(*,*) x


	stop
end
