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

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;
    writeln(HList.map!(a=>abs(a-g)).minIndex+1);
}