import itertools

import math

import fractions

import functools

import copy

n = int(eval(input()))

t, a = list(map(int, input().split()))

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

minimum = 10**10

index = 0

for i in range(n):

    minimum = min(minimum,abs(a-(t-h[i]*0.006)))

    if minimum == abs(a-(t-h[i]*0.006)):

        index = i



print((index+1))
def main():

    n = int(eval(input()))

    t, a = list(map(int, input().split()))

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

    # s = input()



    mini = 10**10

    ans = 0

    for i, x in enumerate(h):

        c = t - x * 0.006

        if abs(a - c) < mini:

            mini = abs(a - c)

            ans = i+1



    print(ans)





if __name__ == '__main__':

    main()

import itertools
import math
import fractions
import functools
import copy

n = int(eval(input()))
t, a = list(map(int, input().split()))
h = list(map(int, input().split()))
minimum = 10**10
index = 0
for i in range(n):
    minimum = min(minimum, abs(a - (t - h[i] * 0.006)))
    if minimum == abs(a - (t - h[i] * 0.006)):
        index = i
print((index + 1))

def main():
    n = int(eval(input()))
    t, a = list(map(int, input().split()))
    h = list(map(int, input().split()))
    # s = input()
    mini = 10**10
    ans = 0
    for i, x in enumerate(h):
        c = t - x * 0.006
        if abs(a - c) < mini:
            mini = abs(a - c)
            ans = i + 1
    print(ans)


if __name__ == "__main__":
    main()

-import itertools -import math -import fractions -import functools -import copy +def main(): +    n = int(eval(input())) +    t, a = list(map(int, input().split())) +    h = list(map(int, input().split())) +    # s = input() +    mini = 10**10 +    ans = 0 +    for i, x in enumerate(h): +        c = t - x * 0.006 +        if abs(a - c) < mini: +            mini = abs(a - c) +            ans = i + 1 +    print(ans) -n = int(eval(input())) -t, a = list(map(int, input().split())) -h = list(map(int, input().split())) -minimum = 10**10 -index = 0 -for i in range(n): -    minimum = min(minimum, abs(a - (t - h[i] * 0.006))) -    if minimum == abs(a - (t - h[i] * 0.006)): -        index = i -print((index + 1)) + +if __name__ == "__main__": +    main()