import numpy as np



N = eval(input())

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

H_list = []

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

T_list = list([T - (x * 0.006) for x in H_list])

T_list_2 = np.array(list([abs(x - A) for x in T_list]))

index = np.argmin(T_list_2)

print((index + 1))
n=int(eval(input()))

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

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



h2=[]

for hh in h:

 h2.append(t-0.006*hh)



v=10**9

for i in range(n):

 if abs(v-a)>abs(h2[i]-a):

  v=h2[i]

  inx=i+1

print(inx)
import numpy as np

N = eval(input())
T, A = list(map(int, input().split()))
H_list = []
H_list = list(map(int, input().split()))
T_list = list([T - (x * 0.006) for x in H_list])
T_list_2 = np.array(list([abs(x - A) for x in T_list]))
index = np.argmin(T_list_2)
print((index + 1))

n = int(eval(input()))
t, a = list(map(int, input().split()))
h = list(map(int, input().split()))
h2 = []
for hh in h:
    h2.append(t - 0.006 * hh)
v = 10**9
for i in range(n):
    if abs(v - a) > abs(h2[i] - a):
        v = h2[i]
        inx = i + 1
print(inx)

-import numpy as np - -N = eval(input()) -T, A = list(map(int, input().split())) -H_list = [] -H_list = list(map(int, input().split())) -T_list = list([T - (x * 0.006) for x in H_list]) -T_list_2 = np.array(list([abs(x - A) for x in T_list])) -index = np.argmin(T_list_2) -print((index + 1)) +n = int(eval(input())) +t, a = list(map(int, input().split())) +h = list(map(int, input().split())) +h2 = [] +for hh in h: +    h2.append(t - 0.006 * hh) +v = 10**9 +for i in range(n): +    if abs(v - a) > abs(h2[i] - a): +        v = h2[i] +        inx = i + 1 +print(inx)