unittest
{
	assert( [ "2", "12 5", "1000 2000" ].parse.expand.solve == 1 );
	assert( [ "3", "21 -11", "81234 94124 52141" ].parse.expand.solve == 3 );
}



import std.algorithm;
import std.conv;
import std.math;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

void main()
{
	stdin.byLineCopy.parse.expand.solve.writeln;
}

auto parse( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	auto n = input.front.strip.to!( long );
	input.popFront;
	auto ta = input.front.split.to!( long[] );
	input.popFront;
	auto hs = input.front.split.to!( long[] );
	return tuple( ta[ 0 ], ta[ 1 ], hs );
}

auto solve( long t, long a, long[] hs )
{
	auto m = real.max;
	auto r = -1L;
	auto i = 1L;
	
	foreach( h; hs.map!( ( x ) => t - x * 0.006f ) )
	{
		auto d = ( h - a ).abs;
		if( d < m )
		{
			m = d;
			r = i;
		}
		i++;
	}
	
	return r;
}
