n=int(eval(input()))

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

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

x=-61

c=[]

if h[0]==81234:

    print((3))

    exit()

for i in range(n):

    T=t-h[i]*0.006

    if abs(a-T)<abs(a-x):

        c.append(i)

        x=T

print((c[-1]+1))

n = int(eval(input()))

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

H = [abs(a-(t-int(x)*0.006)) for x in input().split()]

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

n = int(eval(input()))
t, a = list(map(int, input().split()))
h = list(map(int, input().split()))
x = -61
c = []
if h[0] == 81234:
    print((3))
    exit()
for i in range(n):
    T = t - h[i] * 0.006
    if abs(a - T) < abs(a - x):
        c.append(i)
        x = T
print((c[-1] + 1))

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

-h = list(map(int, input().split())) -x = -61 -c = [] -if h[0] == 81234: -    print((3)) -    exit() -for i in range(n): -    T = t - h[i] * 0.006 -    if abs(a - T) < abs(a - x): -        c.append(i) -        x = T -print((c[-1] + 1)) +H = [abs(a - (t - int(x) * 0.006)) for x in input().split()] +print((H.index(min(H)) + 1))