# coding: utf-8



pointCount = int(eval(input()))

(t, a) = [int(i) for i in input().rstrip().split(" ")]



point_lit = [int(i) for i in input().rstrip().split(" ")]





min_diff = 100000

ans = 0

for i in range(len(point_lit)):

    kion = t - (point_lit[i] * 0.006)

    diff = abs(a - kion)

    if diff < min_diff:

        min_diff = diff

        ans = i + 1



print(ans)
# coding: utf-8



n = int(eval(input()))

(t, a) = [int(i) for i in input().rstrip().split(" ")]



point_list = [int(i) for i in input().rstrip().split(" ")]



ans = -1

nearest = 100000



for i in range(n):

    kion = abs(t - (point_list[i] * 0.006) - a)

    if kion < nearest:

        ans = i + 1

        nearest = kion



print(ans)

# coding: utf-8
pointCount = int(eval(input()))
(t, a) = [int(i) for i in input().rstrip().split(" ")]
point_lit = [int(i) for i in input().rstrip().split(" ")]
min_diff = 100000
ans = 0
for i in range(len(point_lit)):
    kion = t - (point_lit[i] * 0.006)
    diff = abs(a - kion)
    if diff < min_diff:
        min_diff = diff
        ans = i + 1
print(ans)

# coding: utf-8
n = int(eval(input()))
(t, a) = [int(i) for i in input().rstrip().split(" ")]
point_list = [int(i) for i in input().rstrip().split(" ")]
ans = -1
nearest = 100000
for i in range(n):
    kion = abs(t - (point_list[i] * 0.006) - a)
    if kion < nearest:
        ans = i + 1
        nearest = kion
print(ans)

-pointCount = int(eval(input())) +n = int(eval(input())) -point_lit = [int(i) for i in input().rstrip().split(" ")] -min_diff = 100000 -ans = 0 -for i in range(len(point_lit)): -    kion = t - (point_lit[i] * 0.006) -    diff = abs(a - kion) -    if diff < min_diff: -        min_diff = diff +point_list = [int(i) for i in input().rstrip().split(" ")] +ans = -1 +nearest = 100000 +for i in range(n): +    kion = abs(t - (point_list[i] * 0.006) - a) +    if kion < nearest: +        nearest = kion