import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int N = cin.nextInt();
        int T = cin.nextInt();
        int A = cin.nextInt();
        int[] H = new int[N];

        for (int i = 0; i < N; i++) {
            H[i] = cin.nextInt();
        }

        double min = Math.abs(A - (T - H[0] * 0.006));
        int idx = 0;
        for (int i = 1; i < N; i++) {
            double d = Math.abs(A - (T - H[i] * 0.006));
            if (min > d) {
                min = d;
                idx = i;
            }
        }
        System.out.println(idx + 1);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int N = cin.nextInt();
        int T = cin.nextInt();
        int A = cin.nextInt();
        int[] H = new int[N];

        for (int i = 0; i < N; i++) {
            H[i] = cin.nextInt();
        }

        double min = Math.abs(A - (T - H[0] * 0.006));
        int idx = 0;
        for (int i = 1; i < N; i++) {
            double d = Math.abs(A - (T - H[i] * 0.006));
            if (min > d) {
                min = d;
                idx = i;
            }
        }
        System.out.println(idx + 1);
    }
} Main public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int N = cin.nextInt();
        int T = cin.nextInt();
        int A = cin.nextInt();
        int[] H = new int[N];

        for (int i = 0; i < N; i++) {
            H[i] = cin.nextInt();
        }

        double min = Math.abs(A - (T - H[0] * 0.006));
        int idx = 0;
        for (int i = 1; i < N; i++) {
            double d = Math.abs(A - (T - H[i] * 0.006));
            if (min > d) {
                min = d;
                idx = i;
            }
        }
        System.out.println(idx + 1);
    } main {
        Scanner cin = new Scanner(System.in);
        int N = cin.nextInt();
        int T = cin.nextInt();
        int A = cin.nextInt();
        int[] H = new int[N];

        for (int i = 0; i < N; i++) {
            H[i] = cin.nextInt();
        }

        double min = Math.abs(A - (T - H[0] * 0.006));
        int idx = 0;
        for (int i = 1; i < N; i++) {
            double d = Math.abs(A - (T - H[i] * 0.006));
            if (min > d) {
                min = d;
                idx = i;
            }
        }
        System.out.println(idx + 1);
    } Scanner cin = new Scanner(System.in); cin new Scanner(System.in) int N = cin.nextInt(); N cin.nextInt() cin.nextInt cin int T = cin.nextInt(); T cin.nextInt() cin.nextInt cin int A = cin.nextInt(); A cin.nextInt() cin.nextInt cin int[] H = new int[N]; H new int[N] N for (int i = 0; i < N; i++) {
            H[i] = cin.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            H[i] = cin.nextInt();
        } {
            H[i] = cin.nextInt();
        } H[i] = cin.nextInt() H[i] H i cin.nextInt() cin.nextInt cin double min = Math.abs(A - (T - H[0] * 0.006)); min Math.abs(A - (T - H[0] * 0.006)) Math.abs Math A - (T - H[0] * 0.006) A (T - H[0] * 0.006) T H[0] * 0.006 H[0] H 0 0.006 int idx = 0; idx 0 for (int i = 1; i < N; i++) {
            double d = Math.abs(A - (T - H[i] * 0.006));
            if (min > d) {
                min = d;
                idx = i;
            }
        } int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
            double d = Math.abs(A - (T - H[i] * 0.006));
            if (min > d) {
                min = d;
                idx = i;
            }
        } {
            double d = Math.abs(A - (T - H[i] * 0.006));
            if (min > d) {
                min = d;
                idx = i;
            }
        } double d = Math.abs(A - (T - H[i] * 0.006)); d Math.abs(A - (T - H[i] * 0.006)) Math.abs Math A - (T - H[i] * 0.006) A (T - H[i] * 0.006) T H[i] * 0.006 H[i] H i 0.006 if (min > d) {
                min = d;
                idx = i;
            } min > d min d {
                min = d;
                idx = i;
            } min = d min d idx = i idx i System.out.println(idx + 1) System.out.println System.out System System.out idx + 1 idx 1 String[] args args public class Main {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int N = cin.nextInt();
        int T = cin.nextInt();
        int A = cin.nextInt();
        int[] H = new int[N];

        for (int i = 0; i < N; i++) {
            H[i] = cin.nextInt();
        }

        double min = Math.abs(A - (T - H[0] * 0.006));
        int idx = 0;
        for (int i = 1; i < N; i++) {
            double d = Math.abs(A - (T - H[i] * 0.006));
            if (min > d) {
                min = d;
                idx = i;
            }
        }
        System.out.println(idx + 1);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int N = cin.nextInt();
        int T = cin.nextInt();
        int A = cin.nextInt();
        int[] H = new int[N];

        for (int i = 0; i < N; i++) {
            H[i] = cin.nextInt();
        }

        double min = Math.abs(A - (T - H[0] * 0.006));
        int idx = 0;
        for (int i = 1; i < N; i++) {
            double d = Math.abs(A - (T - H[i] * 0.006));
            if (min > d) {
                min = d;
                idx = i;
            }
        }
        System.out.println(idx + 1);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int N = cin.nextInt();
        int T = cin.nextInt();
        int A = cin.nextInt();
        int[] H = new int[N];

        for (int i = 0; i < N; i++) {
            H[i] = cin.nextInt();
        }

        double min = Math.abs(A - (T - H[0] * 0.006));
        int idx = 0;
        for (int i = 1; i < N; i++) {
            double d = Math.abs(A - (T - H[i] * 0.006));
            if (min > d) {
                min = d;
                idx = i;
            }
        }
        System.out.println(idx + 1);
    }
}