n = int(eval(input()))

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

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



temp = 10**6

index = 0

for i in range(n):

    if temp > abs(a - (t - h[i] * 0.006)):

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

        index = i + 1



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

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

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



diff = float('inf')

ans = 0



for i in range(n):

    if abs(t - h[i] * 0.006 - a) < diff:

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

        ans = i + 1



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

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

-temp = 10**6 -index = 0 +diff = float("inf") +ans = 0 -    if temp > abs(a - (t - h[i] * 0.006)): -        temp = abs(a - (t - h[i] * 0.006)) -        index = i + 1 -print(index) +    if abs(t - h[i] * 0.006 - a) < diff: +        diff = abs(t - h[i] * 0.006 - a) +        ans = i + 1 +print(ans)