import sys

n = int(eval(input()))

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

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

c = t - h[0] * 0.006

k = 1

for i in range(n):

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

        c = t - h[i] * 0.006

        k = i + 1

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

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

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

mi = 1000000000

for i in range(n):

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

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

        ans = i+1

print(ans)

import sys

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

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

-import sys - -c = t - h[0] * 0.006 -k = 1 +mi = 1000000000 -    if abs(a - c) > abs(a - (t - h[i] * 0.006)): -        c = t - h[i] * 0.006 -        k = i + 1 -print(k) +    if mi > abs(a - (t - h[i] * 0.006)): +        mi = abs(a - (t - h[i] * 0.006)) +        ans = i + 1 +print(ans)