N = int(eval(input()))

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

dif = list([abs(T - int(x) * 0.006 - A) for x in input().split()])

print((dif.index(min(dif)) + 1))
N = int(eval(input()))

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

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

min_dif = 10**10

ans = 0

for i in range(N):

    dif = abs(T - x_list[i] * 0.006 - A)

    if min_dif > dif:

        min_dif = dif

        ans = i + 1

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

N = int(eval(input()))
T, A = list(map(int, input().split()))
x_list = list(map(int, input().split()))
min_dif = 10**10
ans = 0
for i in range(N):
    dif = abs(T - x_list[i] * 0.006 - A)
    if min_dif > dif:
        min_dif = dif
        ans = i + 1
print(ans)

-dif = list([abs(T - int(x) * 0.006 - A) for x in input().split()]) -print((dif.index(min(dif)) + 1)) +x_list = list(map(int, input().split())) +min_dif = 10**10 +ans = 0 +for i in range(N): +    dif = abs(T - x_list[i] * 0.006 - A) +    if min_dif > dif: +        min_dif = dif +        ans = i + 1 +print(ans)