n = int(eval(input()))

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

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

ABS = []

for i in H:

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

print((ABS.index(min(ABS)) + 1))
n = int(eval(input()))

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

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

mtd = 1000

for i in range(n):

    if abs(a - (t - (H[i] * 0.006))) < mtd:

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

        ans = i + 1

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

n = int(eval(input()))
t, a = list(map(int, input().split()))
H = list(map(int, input().split()))
mtd = 1000
for i in range(n):
    if abs(a - (t - (H[i] * 0.006))) < mtd:
        mtd = abs(a - (t - (H[i] * 0.006)))
        ans = i + 1
print(ans)

-ABS = [] -for i in H: -    ABS.append(abs((t - i * 0.006) - a)) -print((ABS.index(min(ABS)) + 1)) +mtd = 1000 +for i in range(n): +    if abs(a - (t - (H[i] * 0.006))) < mtd: +        mtd = abs(a - (t - (H[i] * 0.006))) +        ans = i + 1 +print(ans)