local n = tonumber(io.read())
local inp = io.read()
local T,a
for i=1,string.len(inp),1 do
  if inp:sub(i,i)==' ' then
    T = tonumber(inp:sub(1,i-1))
    a = tonumber(inp:sub(i+1,string.len(inp)))
  end
end
local hline = io.read()
h={}
string.gsub(hline,"(%S+)", function (v) table.insert(h,tonumber(v)) end)
t={}
for i=1,n,1 do
  t[i]=T-0.006*h[i]
end
res = 1
ti = t[1]
for i=1,n,1 do
  if math.abs(a-ti)>math.abs(a-t[i]) then
    res = i
    ti = t[i]
  end
end
print(res)