import numpy as np

N=int(eval(input()))

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

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

idx=np.abs(T-0.006*np.asarray(H)-A).argmin()

print((idx+1))

N=int(eval(input()))

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

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

D=list(abs(T-int(x)*0.006-A) for x in H)

print((D.index(min(D))+1))

import numpy as np

N = int(eval(input()))
T, A = list(map(int, input().split()))
H = [int(i) for i in input().split()]
idx = np.abs(T - 0.006 * np.asarray(H) - A).argmin()
print((idx + 1))

N = int(eval(input()))
T, A = list(map(int, input().split()))
H = list(map(int, input().split()))
D = list(abs(T - int(x) * 0.006 - A) for x in H)
print((D.index(min(D)) + 1))

-import numpy as np - -H = [int(i) for i in input().split()] -idx = np.abs(T - 0.006 * np.asarray(H) - A).argmin() -print((idx + 1)) +H = list(map(int, input().split())) +D = list(abs(T - int(x) * 0.006 - A) for x in H) +print((D.index(min(D)) + 1))