import numpy as np



N = int(eval(input()))

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

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



temp = list([T - x*0.006 for x in height])



def getNearesValue(list, num):

    idx = np.abs(np.asarray(list) - num).argmin()

    return list[idx]



print((temp.index(getNearesValue(temp, A)) + 1))

# -*-coding: utf-8 -*-

N = int(eval(input()))

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



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



best_near = 100000000

ans = 0

for i in range(N):

    temp = T - H[i]*0.006

    if best_near > abs(A - temp):

        best_near = abs(A - temp)

        ans = i+1

print(ans)
import numpy as np

N = int(eval(input()))
T, A = list(map(int, input().split()))
height = list(map(int, input().split()))
temp = list([T - x * 0.006 for x in height])


def getNearesValue(list, num):
    idx = np.abs(np.asarray(list) - num).argmin()
    return list[idx]


print((temp.index(getNearesValue(temp, A)) + 1))

# -*-coding: utf-8 -*-
N = int(eval(input()))
T, A = list(map(int, input().split()))
H = list(map(int, input().split()))
best_near = 100000000
ans = 0
for i in range(N):
    temp = T - H[i] * 0.006
    if best_near > abs(A - temp):
        best_near = abs(A - temp)
        ans = i + 1
print(ans)

-import numpy as np - +# -*-coding: utf-8 -*- -height = list(map(int, input().split())) -temp = list([T - x * 0.006 for x in height]) - - -def getNearesValue(list, num): -    idx = np.abs(np.asarray(list) - num).argmin() -    return list[idx] - - -print((temp.index(getNearesValue(temp, A)) + 1)) +H = list(map(int, input().split())) +best_near = 100000000 +ans = 0 +for i in range(N): +    temp = T - H[i] * 0.006 +    if best_near > abs(A - temp): +        best_near = abs(A - temp) +        ans = i + 1 +print(ans)