import numpy as np

N = int(eval(input()))

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

h = [abs((T - (int(x) * 0.006)) - A) for x in input().split()]

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

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

h = [abs((T - (int(x) * 0.006)) - A) for x in input().split()]

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

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

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

-import numpy as np - -print((np.argmin(h) + 1)) +print((h.index(min(h)) + 1))