local n = io.read("*n")
local t, a = io.read("*n", "*n")
t, a = t * 1000, a * 1000
local nearest_x = 1
local tbl = {}
for i = 1, n do tbl[i] = io.read("*n") end
for i = 2, n do
  if math.abs(t - 6 * tbl[i] - a) < math.abs(t - 6 * tbl[nearest_x] - a) then
    nearest_x = i
  end
end
print(nearest_x)
