PROGRAM 1104B
  IMPLICIT NONE

  INTEGER :: N,T,A
  INTEGER,ALLOCATABLE :: H(:)

  REAL(8) :: X

  READ(*,'(I4)') N
  READ(*,'(2I3)') T,A

  X=(T-A)/0.006D0

  ALLOCATE(H(1:N))

  READ(*,'(I6)') H(1:N)


  WRITE(*,'(I6)') MINLOC(H(1:N)-X)

  STOP
END PROGRAM 1104B
