function Main(input) {
	input = input.split("\n");
	tmp1 = input[1].split(" ");
	tmp2 = input[2].split(" ");
	var n = parseInt(input[0], 10);
	var t = parseInt(tmp1[0], 10);
	var a = parseInt(tmp1[1], 10);

	function abs(val) {
	  return val < 0 ? -val : val;
	};

        var q = 100;
        var qi = 0;
	for(let i = 0; i < tmp2.length; i++) {
	   var h = parseInt(tmp2[i], 10);
	   var ht = t - h * 0.006;
           if (abs(ht)-abs(a) < abs(q)-abs(a)) {
               qi = i;
           }
	}
	console.log('%d',qi);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));