

n = int(eval(input()))

t, a = [int(x) for x in input().split()]

locations =[int(x) for x in input().split()]

print((min([(i+1,abs(a - (t - x * 6e-3))) for i, x in enumerate(locations)],key=(lambda j:j[1]))[0]))



n = int(eval(input()))

t, a = [int(x) for x in input().split()]

locations =[int(x) for x in input().split()]

# print(min([(i+1,abs(a - (t - x * 6e-3))) for i, x in enumerate(locations)],key=(lambda j:j[1]))[0])

diff = [abs(a - (t - x * 6e-3)) for x in locations]

print((diff.index(min(diff))+1))

n = int(eval(input()))
t, a = [int(x) for x in input().split()]
locations = [int(x) for x in input().split()]
print(
    (
        min(
            [(i + 1, abs(a - (t - x * 6e-3))) for i, x in enumerate(locations)],
            key=(lambda j: j[1]),
        )[0]
    )
)

n = int(eval(input()))
t, a = [int(x) for x in input().split()]
locations = [int(x) for x in input().split()]
# print(min([(i+1,abs(a - (t - x * 6e-3))) for i, x in enumerate(locations)],key=(lambda j:j[1]))[0])
diff = [abs(a - (t - x * 6e-3)) for x in locations]
print((diff.index(min(diff)) + 1))

-print( -    ( -        min( -            [(i + 1, abs(a - (t - x * 6e-3))) for i, x in enumerate(locations)], -            key=(lambda j: j[1]), -        )[0] -    ) -) +# print(min([(i+1,abs(a - (t - x * 6e-3))) for i, x in enumerate(locations)],key=(lambda j:j[1]))[0]) +diff = [abs(a - (t - x * 6e-3)) for x in locations] +print((diff.index(min(diff)) + 1))