import numpy as np



N = int(eval(input()))



T, A = [int(i) for i in input().split()]



H = np.array([int(i) for i in input().split()])



temp = T - 0.006*H



temp_def = temp-A



temp_target = min(abs(temp_def))



ans = int(np.where(abs(temp_def) == temp_target)[0]) +1





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

t,a = [int(i) for i in input().split()]



h = [int(i) for i in input().split()]



cand = float('inf')

ans = 1



for i in range(n):

    temp = abs(a - (t - 0.006*h[i]))

    if cand > temp:

        cand = temp 

        ans = i+1

        

print(ans)
import numpy as np

N = int(eval(input()))
T, A = [int(i) for i in input().split()]
H = np.array([int(i) for i in input().split()])
temp = T - 0.006 * H
temp_def = temp - A
temp_target = min(abs(temp_def))
ans = int(np.where(abs(temp_def) == temp_target)[0]) + 1
print(ans)

n = int(eval(input()))
t, a = [int(i) for i in input().split()]
h = [int(i) for i in input().split()]
cand = float("inf")
ans = 1
for i in range(n):
    temp = abs(a - (t - 0.006 * h[i]))
    if cand > temp:
        cand = temp
        ans = i + 1
print(ans)

-import numpy as np - -N = int(eval(input())) -T, A = [int(i) for i in input().split()] -H = np.array([int(i) for i in input().split()]) -temp = T - 0.006 * H -temp_def = temp - A -temp_target = min(abs(temp_def)) -ans = int(np.where(abs(temp_def) == temp_target)[0]) + 1 +n = int(eval(input())) +t, a = [int(i) for i in input().split()] +h = [int(i) for i in input().split()] +cand = float("inf") +ans = 1 +for i in range(n): +    temp = abs(a - (t - 0.006 * h[i])) +    if cand > temp: +        cand = temp +        ans = i + 1