n, x, y = map(int, input().split())
a = [int(s) for s in input().split()]
k = i = j = 0

for i in range(n-1):
    if k >= y:
        break
    elif a[i] < a[i+1] or (j != 0 and a[j] < a[i+1]):
        if k == 0:
            j = i
        k += 1
    else:
        k = 0

if k == 0 and i == n-2 and a[i] > a[i+1] and y != 0:
    print(n)
else:
    if k < y:
        i = n
    print(i-y+1)