#!/usr/bin/env python3

import numpy as np

n = int(eval(input())) 

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

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

a_t = []

for i in h:

    a_t.append(t - i * 0.006)

print((np.abs(np.asarray(a_t) - a).argmin() + 1))
#!/usr/bin/env python3

n = int(eval(input())) 

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

h = [abs(t - x * 0.006 - a) for x in map(int, input().split())]

print((h.index(min(h)) + 1))
#!/usr/bin/env python3
import numpy as np

n = int(eval(input()))
t, a = list(map(int, input().split()))
h = list(map(int, input().split()))
a_t = []
for i in h:
    a_t.append(t - i * 0.006)
print((np.abs(np.asarray(a_t) - a).argmin() + 1))

#!/usr/bin/env python3
n = int(eval(input()))
t, a = list(map(int, input().split()))
h = [abs(t - x * 0.006 - a) for x in map(int, input().split())]
print((h.index(min(h)) + 1))

-import numpy as np - -h = list(map(int, input().split())) -a_t = [] -for i in h: -    a_t.append(t - i * 0.006) -print((np.abs(np.asarray(a_t) - a).argmin() + 1)) +h = [abs(t - x * 0.006 - a) for x in map(int, input().split())] +print((h.index(min(h)) + 1))