N = int(eval(input()))

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

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



dist = 1

tmp = abs(T - H[0]*0.006 - A)

for i in range(1,N):

  tempra = abs(T - H[i]*0.006 - A)

  if(tempra < tmp):

    tmp = tempra

    dist = i + 1

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

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

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



tempra = [abs((T - h * 0.006) - A) for h in H]

print((tempra.index(min(tempra)) + 1))
N = int(eval(input()))
T, A = list(map(int, input().split()))
H = list(map(int, input().split()))
dist = 1
tmp = abs(T - H[0] * 0.006 - A)
for i in range(1, N):
    tempra = abs(T - H[i] * 0.006 - A)
    if tempra < tmp:
        tmp = tempra
        dist = i + 1
print(dist)

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

-dist = 1 -tmp = abs(T - H[0] * 0.006 - A) -for i in range(1, N): -    tempra = abs(T - H[i] * 0.006 - A) -    if tempra < tmp: -        tmp = tempra -        dist = i + 1 -print(dist) +tempra = [abs((T - h * 0.006) - A) for h in H] +print((tempra.index(min(tempra)) + 1))