n = int(eval(input()))

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

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

for i,ave in enumerate(h):

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

ans = h.index(min(h))+1

print(ans)

N = int(eval(input()))

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

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

count = 10**9

ans = 0

for i in range(N):

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

    if count >= aveT:

        count = aveT

        ans = i+1

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

N = int(eval(input()))
T, A = list(map(int, input().split()))
H = list(map(int, input().split()))
count = 10**9
ans = 0
for i in range(N):
    aveT = abs(A - (T - 0.006 * H[i]))
    if count >= aveT:
        count = aveT
        ans = i + 1
print(ans)

-n = int(eval(input())) -t, a = list(map(int, input().split())) -h = list(map(int, input().split())) -for i, ave in enumerate(h): -    h[i] = abs(a - (t - h[i] * 0.006)) -ans = h.index(min(h)) + 1 +N = int(eval(input())) +T, A = list(map(int, input().split())) +H = list(map(int, input().split())) +count = 10**9 +ans = 0 +for i in range(N): +    aveT = abs(A - (T - 0.006 * H[i])) +    if count >= aveT: +        count = aveT +        ans = i + 1