void main() {
    int n = readln.chomp.to!int;
    int[] tmp = readln.split.to!(int[]);
    int t = tmp[0], a = tmp[1];
    double[] h = readln.split.to!(double[]);
    h[] *= -0.006;
    h[] += t - a;
    int[] ind = iota(1, n+1).array;
    zip(h, ind).sort!((t1, t2) => t1[0] * t1[0] < t2[0] * t2[0]);
    ind[0].writeln;
}

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