INTEGER N,T,A
INTEGER,ALLOCATABLE,DIMENSION(:)::H
INTEGER ANS
REAL S
READ*,N,T,A
ALLOCATE(H(N))
READ*,H
S=500
DO I=1,N
  IF(ABS( A-(T-H(I)*0.006) )>S) CYCLE
  S=ABS( A-(T-H(I)*0.006) )
  ANS=I
END DO
PRINT"(I0)",ANS
END