import sys

input = sys.stdin.buffer.readline



N = int(eval(input()))

T, A = list(map(int, input().split()))

H = list(map(int, input().split()))



Th = [T - h * 0.006 for h in H]



answer = -1

dif = 10 ** 15

for i, t in enumerate(Th, 1):

    if abs(A - t) < dif:

        answer = i

        dif = abs(A - t)



print(answer)
import sys

input = sys.stdin.buffer.readline



N = int(eval(input()))

T, A = list(map(int, input().split()))

H = list(map(int, input().split()))



answer = -1

dif = 10 ** 15

for i, h in enumerate(H, 1):

    if abs(A - (T - h * 0.006)) < dif:

        answer = i

        dif = abs(A - (T - h * 0.006))



print(answer)
import sys

input = sys.stdin.buffer.readline
N = int(eval(input()))
T, A = list(map(int, input().split()))
H = list(map(int, input().split()))
Th = [T - h * 0.006 for h in H]
answer = -1
dif = 10**15
for i, t in enumerate(Th, 1):
    if abs(A - t) < dif:
        answer = i
        dif = abs(A - t)
print(answer)

import sys

input = sys.stdin.buffer.readline
N = int(eval(input()))
T, A = list(map(int, input().split()))
H = list(map(int, input().split()))
answer = -1
dif = 10**15
for i, h in enumerate(H, 1):
    if abs(A - (T - h * 0.006)) < dif:
        answer = i
        dif = abs(A - (T - h * 0.006))
print(answer)

-Th = [T - h * 0.006 for h in H] -for i, t in enumerate(Th, 1): -    if abs(A - t) < dif: +for i, h in enumerate(H, 1): +    if abs(A - (T - h * 0.006)) < dif: -        dif = abs(A - t) +        dif = abs(A - (T - h * 0.006))