import std.stdio, std.conv, std.string, std.algorithm.comparison, std.algorithm.searching, std.algorithm.sorting, std.algorithm.iteration, std.math, std.random, std.range;

void main()
{
    int N = readln().strip.to!(int);
    int[] input = readln().split.to!(int[]);
    int T = input[0];
    int A = input[1];
    auto HList = readln().strip.split.to!(int[]);
    double g = (T-A)/0.006;
    int index = -1;
    double v = double.max;
    foreach(i,h; HList.map!(a=>abs(a-g)).enumerate(1))
    {
        if(h < v)
        {
            index = i;
            v = h;
        }
    }
    writeln(index);
}