n = int(eval(input()))

t,a = list(map(int,input().split()))

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

ans = 1

min_dif = abs(t-h[0]*0.006-a)

for i in range(1,n):

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

    if min_dif > dif: min_dif,ans = dif,i+1

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

t,a = list(map(int,input().split()))

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

dif = 10**10

ans = 0

for i in range(n):

    z = t-h[i]*0.006

    if dif>abs(a-z):

        dif = abs(a-z)

        ans = i+1

print(ans)
n = int(eval(input()))
t, a = list(map(int, input().split()))
h = list(map(int, input().split()))
ans = 1
min_dif = abs(t - h[0] * 0.006 - a)
for i in range(1, n):
    dif = abs(t - h[i] * 0.006 - a)
    if min_dif > dif:
        min_dif, ans = dif, i + 1
print(ans)

n = int(eval(input()))
t, a = list(map(int, input().split()))
h = list(map(int, input().split()))
dif = 10**10
ans = 0
for i in range(n):
    z = t - h[i] * 0.006
    if dif > abs(a - z):
        dif = abs(a - z)
        ans = i + 1
print(ans)

-ans = 1 -min_dif = abs(t - h[0] * 0.006 - a) -for i in range(1, n): -    dif = abs(t - h[i] * 0.006 - a) -    if min_dif > dif: -        min_dif, ans = dif, i + 1 +dif = 10**10 +ans = 0 +for i in range(n): +    z = t - h[i] * 0.006 +    if dif > abs(a - z): +        dif = abs(a - z) +        ans = i + 1