import sys



input = sys.stdin.readline



def main():

    ans = 0

    N = int(eval(input()))

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

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

    temp = float('inf')

    for  i in range(N):

        d = T - h[i]*0.006

        if abs(A - temp) > abs(A - d):

            temp = d

            ans = i+1

    print(ans)



if __name__ == '__main__':

    main()
import sys



input = sys.stdin.readline



def main():

    l = []

    N = int(eval(input()))

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

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

    for  i in range(N):

      l.append(abs(A-(T-h[i]*0.006)))

    print((l.index(min(l))+1))



if __name__ == '__main__':

    main()
import sys

input = sys.stdin.readline


def main():
    ans = 0
    N = int(eval(input()))
    T, A = list(map(int, input().split()))
    h = list(map(int, input().split()))
    temp = float("inf")
    for i in range(N):
        d = T - h[i] * 0.006
        if abs(A - temp) > abs(A - d):
            temp = d
            ans = i + 1
    print(ans)


if __name__ == "__main__":
    main()

import sys

input = sys.stdin.readline


def main():
    l = []
    N = int(eval(input()))
    T, A = list(map(int, input().split()))
    h = list(map(int, input().split()))
    for i in range(N):
        l.append(abs(A - (T - h[i] * 0.006)))
    print((l.index(min(l)) + 1))


if __name__ == "__main__":
    main()

-    ans = 0 +    l = [] -    temp = float("inf") -        d = T - h[i] * 0.006 -        if abs(A - temp) > abs(A - d): -            temp = d -            ans = i + 1 -    print(ans) +        l.append(abs(A - (T - h[i] * 0.006))) +    print((l.index(min(l)) + 1))