while true
  m, n_min, n_max = gets.split.map(&:to_i)
  break if m + n_min + n_max == 0
  scores = Array.new(m) { gets.to_i }
  ans = 0
  gap_max = -1

  n_min.upto(n_max) do |n|
    gap = scores[n - 1] - scores[n]

    unless gap < gap_max
      gap_max = gap

      ans = n
    end
  end

  puts ans
end