import std.stdio;
import std.algorithm;
import std.conv;
import std.datetime;
import std.numeric;
import std.math;
import std.string;

string my_readln() { return chomp(readln()); }

void main()
{
	auto N = to!ulong(my_readln());
	auto tokens = split(my_readln());
	auto T = to!long(tokens[0]);
	auto A = to!long(tokens[1]);
	
	double d = double.max;
	ulong pos;
	foreach (i, token; split(my_readln()))
	{
		auto x = to!long(token);
		auto diff = abs(T - x * 0.006 - A);
		if (diff < d)
		{
			d   = diff;
			pos = i + 1;
		}
	}

	writeln(pos);
	stdout.flush();
}