N = int(eval(input()))

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

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

AveT = []

diff = []



for i in range(N):

	AveT.append(T - H[i]*0.006)

	diff.append(abs(AveT[i] - A))



for i in range(N):

	if diff[i] == min(diff):

		place = i + 1



print(place)
N = int(eval(input()))

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

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

AveT = [T - h*0.006 for h in H]

diff = [abs(Ave_t - A) for Ave_t in AveT]



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

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

-AveT = [] -diff = [] -for i in range(N): -    AveT.append(T - H[i] * 0.006) -    diff.append(abs(AveT[i] - A)) -for i in range(N): -    if diff[i] == min(diff): -        place = i + 1 -print(place) +AveT = [T - h * 0.006 for h in H] +diff = [abs(Ave_t - A) for Ave_t in AveT] +print((diff.index(min(diff)) + 1))