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();
        double min = 999;
        int minidx = 0;
        for (int i = 0; i < n; i++) {
            double sa = Math.abs(a-(t-sc.nextInt()*0.006));
            if (min > sa) {
                min = sa;
                minidx = i;
            }
        }
        System.out.println(minidx+1);

    }
} 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();
        double min = 999;
        int minidx = 0;
        for (int i = 0; i < n; i++) {
            double sa = Math.abs(a-(t-sc.nextInt()*0.006));
            if (min > sa) {
                min = sa;
                minidx = i;
            }
        }
        System.out.println(minidx+1);

    }
} 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();
        double min = 999;
        int minidx = 0;
        for (int i = 0; i < n; i++) {
            double sa = Math.abs(a-(t-sc.nextInt()*0.006));
            if (min > sa) {
                min = sa;
                minidx = i;
            }
        }
        System.out.println(minidx+1);

    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int a = sc.nextInt();
        double min = 999;
        int minidx = 0;
        for (int i = 0; i < n; i++) {
            double sa = Math.abs(a-(t-sc.nextInt()*0.006));
            if (min > sa) {
                min = sa;
                minidx = i;
            }
        }
        System.out.println(minidx+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 double min = 999; min 999 int minidx = 0; minidx 0 for (int i = 0; i < n; i++) {
            double sa = Math.abs(a-(t-sc.nextInt()*0.006));
            if (min > sa) {
                min = sa;
                minidx = i;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            double sa = Math.abs(a-(t-sc.nextInt()*0.006));
            if (min > sa) {
                min = sa;
                minidx = i;
            }
        } {
            double sa = Math.abs(a-(t-sc.nextInt()*0.006));
            if (min > sa) {
                min = sa;
                minidx = i;
            }
        } double sa = Math.abs(a-(t-sc.nextInt()*0.006)); sa Math.abs(a-(t-sc.nextInt()*0.006)) Math.abs Math a-(t-sc.nextInt()*0.006) a (t-sc.nextInt()*0.006) t sc.nextInt()*0.006 sc.nextInt() sc.nextInt sc 0.006 if (min > sa) {
                min = sa;
                minidx = i;
            } min > sa min sa {
                min = sa;
                minidx = i;
            } min = sa min sa minidx = i minidx i System.out.println(minidx+1) System.out.println System.out System System.out minidx+1 minidx 1 String[] args args 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();
        double min = 999;
        int minidx = 0;
        for (int i = 0; i < n; i++) {
            double sa = Math.abs(a-(t-sc.nextInt()*0.006));
            if (min > sa) {
                min = sa;
                minidx = i;
            }
        }
        System.out.println(minidx+1);

    }
} 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();
        double min = 999;
        int minidx = 0;
        for (int i = 0; i < n; i++) {
            double sa = Math.abs(a-(t-sc.nextInt()*0.006));
            if (min > sa) {
                min = sa;
                minidx = i;
            }
        }
        System.out.println(minidx+1);

    }
} 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();
        double min = 999;
        int minidx = 0;
        for (int i = 0; i < n; i++) {
            double sa = Math.abs(a-(t-sc.nextInt()*0.006));
            if (min > sa) {
                min = sa;
                minidx = i;
            }
        }
        System.out.println(minidx+1);

    }
}