import numpy as np

N = int(eval(input()))

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

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

H = list([abs((T - x*0.006)-A) for x in H])



print((np.argmin(H)+1))

import numpy as np

N = int(eval(input()))

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

H =  list([abs(T - float(x)*0.006 - A) for x in input().split(" ")])

print((np.argmin(H)+1))

import numpy as np

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

import numpy as np

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

-H = list(map(int, input().split(" "))) -H = list([abs((T - x * 0.006) - A) for x in H]) +H = list([abs(T - float(x) * 0.006 - A) for x in input().split(" ")])