inp = input()
vals = inp.split(" ")

n = int(vals[0])
x = int(vals[1])
y = int(vals[2])

inp = input()
days = inp.split(" ")

for day in range(len(days)):
	days[day] = int(days[day])

initial = x
loop = initial-1
f = 0
front = y

while f == 0 and initial < n:
	day = days[initial]
	count = 0
	loop = initial-1
	if x > 0:
		while count < x and days[loop] > day:
			count += 1
			loop -= 1
	if count == x:
		loop = initial+1
		count = 0
		if initial + y >= n:
			front = n - initial-1
		while count < front and days[loop] > day:
			count += 1
			loop += 1
		if count == front:
 			f = 1
	initial += 1

print(initial)