N = int(eval(input()))

T, A = [int(i) for i in input().split()]

H =[int(i) for i in input().split()]



 

HH=[abs(A-(T-h*0.006))for h in H]  

print((int(HH.index(min(HH))+1)))  
N = int(eval(input()))

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

H = [int(i) for i in input().split()]



place = [T-i*0.006 for i in H ]

best = [abs(A-place[i]) for i in range(N)]

print((best.index(min(best))+1))
N = int(eval(input()))
T, A = [int(i) for i in input().split()]
H = [int(i) for i in input().split()]
HH = [abs(A - (T - h * 0.006)) for h in H]
print((int(HH.index(min(HH)) + 1)))

N = int(eval(input()))
T, A = list(map(int, input().split()))
H = [int(i) for i in input().split()]
place = [T - i * 0.006 for i in H]
best = [abs(A - place[i]) for i in range(N)]
print((best.index(min(best)) + 1))

-T, A = [int(i) for i in input().split()] +T, A = list(map(int, input().split())) -HH = [abs(A - (T - h * 0.006)) for h in H] -print((int(HH.index(min(HH)) + 1))) +place = [T - i * 0.006 for i in H] +best = [abs(A - place[i]) for i in range(N)] +print((best.index(min(best)) + 1))