n = int(eval(input()))

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

l = []

m = []

ans = []



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

    

for i in range(n):

    m.append(t - (l[i] * 0.006))



for i in range(n):

    ans.append(a - m[i])



print((ans.index(min(ans,key=abs))+1))
n = int(eval(input()))

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

ans = []



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

    

for i in l:

    ans.append(abs(a - (t - (i * 0.006))))



print((ans.index(min(ans))+1))
n = int(eval(input()))
t, a = list(map(int, input().split()))
l = []
m = []
ans = []
l = list(map(int, input().split()))
for i in range(n):
    m.append(t - (l[i] * 0.006))
for i in range(n):
    ans.append(a - m[i])
print((ans.index(min(ans, key=abs)) + 1))

n = int(eval(input()))
t, a = list(map(int, input().split()))
ans = []
l = list(map(int, input().split()))
for i in l:
    ans.append(abs(a - (t - (i * 0.006))))
print((ans.index(min(ans)) + 1))

-l = [] -m = [] -for i in range(n): -    m.append(t - (l[i] * 0.006)) -for i in range(n): -    ans.append(a - m[i]) -print((ans.index(min(ans, key=abs)) + 1)) +for i in l: +    ans.append(abs(a - (t - (i * 0.006)))) +print((ans.index(min(ans)) + 1))