import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int t = sc.nextInt();
        int a = sc.nextInt();

        int[] h = new int[n];
        for (int i = 0; sc.hasNextInt(); i++) {
            h[i] = sc.nextInt();
        }

        int maxIndex = 0;
        double val = Math.abs(a - ave(t, h[0]));
        for (int i = 1; i < h.length; i++) {
            double target = Math.abs(a - ave(t, h[i]));
            if (val > target) {
                maxIndex = i;
                val = target;
            }
        }

        System.out.println(maxIndex + 1);
    }

    static double ave(int t, int h) {
        return t - (h * 0.006);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int t = sc.nextInt();
        int a = sc.nextInt();

        int[] h = new int[n];
        for (int i = 0; sc.hasNextInt(); i++) {
            h[i] = sc.nextInt();
        }

        int maxIndex = 0;
        double val = Math.abs(a - ave(t, h[0]));
        for (int i = 1; i < h.length; i++) {
            double target = Math.abs(a - ave(t, h[i]));
            if (val > target) {
                maxIndex = i;
                val = target;
            }
        }

        System.out.println(maxIndex + 1);
    }

    static double ave(int t, int h) {
        return t - (h * 0.006);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int t = sc.nextInt();
        int a = sc.nextInt();

        int[] h = new int[n];
        for (int i = 0; sc.hasNextInt(); i++) {
            h[i] = sc.nextInt();
        }

        int maxIndex = 0;
        double val = Math.abs(a - ave(t, h[0]));
        for (int i = 1; i < h.length; i++) {
            double target = Math.abs(a - ave(t, h[i]));
            if (val > target) {
                maxIndex = i;
                val = target;
            }
        }

        System.out.println(maxIndex + 1);
    } main {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int t = sc.nextInt();
        int a = sc.nextInt();

        int[] h = new int[n];
        for (int i = 0; sc.hasNextInt(); i++) {
            h[i] = sc.nextInt();
        }

        int maxIndex = 0;
        double val = Math.abs(a - ave(t, h[0]));
        for (int i = 1; i < h.length; i++) {
            double target = Math.abs(a - ave(t, h[i]));
            if (val > target) {
                maxIndex = i;
                val = target;
            }
        }

        System.out.println(maxIndex + 1);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int[] h = new int[n]; h new int[n] n for (int i = 0; sc.hasNextInt(); i++) {
            h[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 sc.hasNextInt() sc.hasNextInt sc i++ i++ i {
            h[i] = sc.nextInt();
        } {
            h[i] = sc.nextInt();
        } h[i] = sc.nextInt() h[i] h i sc.nextInt() sc.nextInt sc int maxIndex = 0; maxIndex 0 double val = Math.abs(a - ave(t, h[0])); val Math.abs(a - ave(t, h[0])) Math.abs Math a - ave(t, h[0]) a ave(t, h[0]) ave t h[0] h 0 for (int i = 1; i < h.length; i++) {
            double target = Math.abs(a - ave(t, h[i]));
            if (val > target) {
                maxIndex = i;
                val = target;
            }
        } int i = 1; int i = 1; i 1 i < h.length i h.length h h.length i++ i++ i {
            double target = Math.abs(a - ave(t, h[i]));
            if (val > target) {
                maxIndex = i;
                val = target;
            }
        } {
            double target = Math.abs(a - ave(t, h[i]));
            if (val > target) {
                maxIndex = i;
                val = target;
            }
        } double target = Math.abs(a - ave(t, h[i])); target Math.abs(a - ave(t, h[i])) Math.abs Math a - ave(t, h[i]) a ave(t, h[i]) ave t h[i] h i if (val > target) {
                maxIndex = i;
                val = target;
            } val > target val target {
                maxIndex = i;
                val = target;
            } maxIndex = i maxIndex i val = target val target System.out.println(maxIndex + 1) System.out.println System.out System System.out maxIndex + 1 maxIndex 1 String[] args args static double ave(int t, int h) {
        return t - (h * 0.006);
    } ave {
        return t - (h * 0.006);
    } return t - (h * 0.006); t - (h * 0.006) t (h * 0.006) h 0.006 int t t int h h public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int t = sc.nextInt();
        int a = sc.nextInt();

        int[] h = new int[n];
        for (int i = 0; sc.hasNextInt(); i++) {
            h[i] = sc.nextInt();
        }

        int maxIndex = 0;
        double val = Math.abs(a - ave(t, h[0]));
        for (int i = 1; i < h.length; i++) {
            double target = Math.abs(a - ave(t, h[i]));
            if (val > target) {
                maxIndex = i;
                val = target;
            }
        }

        System.out.println(maxIndex + 1);
    }

    static double ave(int t, int h) {
        return t - (h * 0.006);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int t = sc.nextInt();
        int a = sc.nextInt();

        int[] h = new int[n];
        for (int i = 0; sc.hasNextInt(); i++) {
            h[i] = sc.nextInt();
        }

        int maxIndex = 0;
        double val = Math.abs(a - ave(t, h[0]));
        for (int i = 1; i < h.length; i++) {
            double target = Math.abs(a - ave(t, h[i]));
            if (val > target) {
                maxIndex = i;
                val = target;
            }
        }

        System.out.println(maxIndex + 1);
    }

    static double ave(int t, int h) {
        return t - (h * 0.006);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int t = sc.nextInt();
        int a = sc.nextInt();

        int[] h = new int[n];
        for (int i = 0; sc.hasNextInt(); i++) {
            h[i] = sc.nextInt();
        }

        int maxIndex = 0;
        double val = Math.abs(a - ave(t, h[0]));
        for (int i = 1; i < h.length; i++) {
            double target = Math.abs(a - ave(t, h[i]));
            if (val > target) {
                maxIndex = i;
                val = target;
            }
        }

        System.out.println(maxIndex + 1);
    }

    static double ave(int t, int h) {
        return t - (h * 0.006);
    }
}