# your code goes here
n,my_score,p = map(int,input().split())
if n == 0:
    print(1)
else:
    scores = list(map(int,input().split()))
    cnt = 1
    flag = True
    for score in scores:
        if score == my_score and len(scores) < p:
            print(cnt)
            flag = False
            break
        if score < my_score : #and len(scores) < p 제거함.
            print(cnt)
            flag = False 
            break
        cnt += 1
    if flag:
        if score > my_score and len(scores) < p:
            print(cnt)
        else:
            print(-1)