import numpy as np

a = int(eval(input()))

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

c = np.array(input().split(),dtype=np.int)

d = np.abs(b[0]-0.006*c-b[1])

print((np.argmin(d)+1))
N = int(eval(input()))

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

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

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

print((1+B.index(min(B))))
import numpy as np

a = int(eval(input()))
b = list(map(int, input().split()))
c = np.array(input().split(), dtype=np.int)
d = np.abs(b[0] - 0.006 * c - b[1])
print((np.argmin(d) + 1))

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

-import numpy as np - -a = int(eval(input())) -b = list(map(int, input().split())) -c = np.array(input().split(), dtype=np.int) -d = np.abs(b[0] - 0.006 * c - b[1]) -print((np.argmin(d) + 1)) +N = int(eval(input())) +T, A = list(map(int, input().split())) +H = list(map(int, input().split())) +B = [abs(T - 0.006 * h - A) for h in H] +print((1 + B.index(min(B))))