from numpy import array, argmin



eval(input())

temp_on_sea, oracle = list(map(int, input().rstrip("\n").split()))

heights = list(map(int , input().rstrip("\n").split()))

temp_diff = [abs(temp_on_sea - height * 0.006 - oracle) for height in heights]



print((array(temp_diff).argmin() + 1))

from numpy import argmin

eval(input())

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

print((argmin([abs(T - x * 0.006 - A) for x in map(int, input().split())]) + 1))
from numpy import array, argmin

eval(input())
temp_on_sea, oracle = list(map(int, input().rstrip("\n").split()))
heights = list(map(int, input().rstrip("\n").split()))
temp_diff = [abs(temp_on_sea - height * 0.006 - oracle) for height in heights]
print((array(temp_diff).argmin() + 1))

from numpy import argmin

eval(input())
T, A = list(map(int, input().split()))
print((argmin([abs(T - x * 0.006 - A) for x in map(int, input().split())]) + 1))

-from numpy import array, argmin +from numpy import argmin -temp_on_sea, oracle = list(map(int, input().rstrip("\n").split())) -heights = list(map(int, input().rstrip("\n").split())) -temp_diff = [abs(temp_on_sea - height * 0.006 - oracle) for height in heights] -print((array(temp_diff).argmin() + 1)) +T, A = list(map(int, input().split())) +print((argmin([abs(T - x * 0.006 - A) for x in map(int, input().split())]) + 1))