import std.stdio, std.math, std.algorithm, std.array, std.string, std.conv, std.container, std.range;
T Read(T)() { return readln.chomp.to!(T); }
T[] Reads(T)() { return readln.split.to!(T[]); }
alias read = Read!(int);
alias reads = Reads!(int);

int minIndex(double[] a) {
    double m = a.reduce!(min);
    foreach (i, v; a) if (v == m) return i.to!int;
}

void main() {
    readln;
    int t, a; readf("%d %d\n", &t, &a);
    writeln(reads.to!(double[])
        .map!(h => t - 0.006 * h)
        .map!(h => abs(h - a)).array
        .minIndex + 1);
}