import numpy as np

N = int(eval(input()))

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

H = np.array(input().split(),dtype=np.float64)

x=np.abs(T-H*0.006-A)

ans=np.argmin(x)+1

print(ans)
N=int(eval(input()))

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

H=[int(x) for x in input().split()]

answer=0

deff=float('inf')

for i in range(N):

  deff=min(deff,abs(H[i]-(T-A)/0.006))

  if deff==abs(H[i]-(T-A)/0.006):

    answer=i+1

print(answer)
import numpy as np

N = int(eval(input()))
T, A = list(map(int, input().split()))
H = np.array(input().split(), dtype=np.float64)
x = np.abs(T - H * 0.006 - A)
ans = np.argmin(x) + 1
print(ans)

N = int(eval(input()))
T, A = list(map(int, input().split()))
H = [int(x) for x in input().split()]
answer = 0
deff = float("inf")
for i in range(N):
    deff = min(deff, abs(H[i] - (T - A) / 0.006))
    if deff == abs(H[i] - (T - A) / 0.006):
        answer = i + 1
print(answer)

-import numpy as np - -H = np.array(input().split(), dtype=np.float64) -x = np.abs(T - H * 0.006 - A) -ans = np.argmin(x) + 1 -print(ans) +H = [int(x) for x in input().split()] +answer = 0 +deff = float("inf") +for i in range(N): +    deff = min(deff, abs(H[i] - (T - A) / 0.006)) +    if deff == abs(H[i] - (T - A) / 0.006): +        answer = i + 1 +print(answer)