n,x,y=[int(x) for x in input().split()]
a=[int(x) for x in input().split()]
if x==n:
	print(a[n-1])
else:
	for i in range(x,n):
		f=False
		for j in range(i-x,x):
			if a[i]>a[j] :
				f=True
				break
		if not f and i+y<n:
			for j in range(i+1,i+y+1):
				if a[i]>a[j]:
					break
				if j==i+y:
					print(a[i])