n,x,y=input().split()
n,x,y=[int(n),int(x),int(y)]
'''while(n<0 or n>100000):
    n=input()
while (x<0 or x>8):
    x=input()
while (y<0 or y>8):
    y=input()
'''
a=input().split()


def check_rain(x,y,a,day,n):
  j=[]
  l=day-x
  while l<day:
     j.append(int(a[l-1]))
     l+=1
  #print('j is :',j)
  j_j=[]
  m=day
  if day+y>n:
      g=n
  else:
     g=day+y
  while m<g:
     j_j.append(int(a[m]))
     m+=1
  #print('j_j is :',j_j)
  #print(a[day])
  if len(j)==n:
      return day-1
  for i in range(len(j)):
     if j[i]> int(a[day-1]):
         j[i]=0
     else:
         return 0
  for i in range(len(j_j)):
     if j_j[i]> int(a[day-1]):
         j_j[i]=0
     else:
         return 0
  #print('j is',j)
  #print('j_j iis',j_j)
  return day
  

#if n==x :
 #   print (n)

if x==0 or y==0 :
    print(1)
else:    
 d=0
 i=1
 while d==0:
     if(x+i==n):
         break
     #print(x+i)
     d=check_rain(x,y,a,x+i,n)
     i+=1

 print(d)  






