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();
        double a = sc.nextDouble();
        int[] h = new int[n];
        int flag = 1;
        double[] t_ave = new double[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        for (int i = 0; i < n; i++) {
            t_ave[i] = t - h[i] * 0.006;
        }
        double min = Math.abs(a - t_ave[0]);
        for (int i = 1; i < n; i++) {
            if (min > Math.abs(a - t_ave[i])) {
                min = Math.abs(a - t_ave[i]);
                flag = i + 1;
            }
        }
        System.out.println(flag);
    }
} 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();
        double a = sc.nextDouble();
        int[] h = new int[n];
        int flag = 1;
        double[] t_ave = new double[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        for (int i = 0; i < n; i++) {
            t_ave[i] = t - h[i] * 0.006;
        }
        double min = Math.abs(a - t_ave[0]);
        for (int i = 1; i < n; i++) {
            if (min > Math.abs(a - t_ave[i])) {
                min = Math.abs(a - t_ave[i]);
                flag = i + 1;
            }
        }
        System.out.println(flag);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        double a = sc.nextDouble();
        int[] h = new int[n];
        int flag = 1;
        double[] t_ave = new double[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        for (int i = 0; i < n; i++) {
            t_ave[i] = t - h[i] * 0.006;
        }
        double min = Math.abs(a - t_ave[0]);
        for (int i = 1; i < n; i++) {
            if (min > Math.abs(a - t_ave[i])) {
                min = Math.abs(a - t_ave[i]);
                flag = i + 1;
            }
        }
        System.out.println(flag);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        double a = sc.nextDouble();
        int[] h = new int[n];
        int flag = 1;
        double[] t_ave = new double[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        for (int i = 0; i < n; i++) {
            t_ave[i] = t - h[i] * 0.006;
        }
        double min = Math.abs(a - t_ave[0]);
        for (int i = 1; i < n; i++) {
            if (min > Math.abs(a - t_ave[i])) {
                min = Math.abs(a - t_ave[i]);
                flag = i + 1;
            }
        }
        System.out.println(flag);
    } 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 double a = sc.nextDouble(); a sc.nextDouble() sc.nextDouble sc int[] h = new int[n]; h new int[n] n int flag = 1; flag 1 double[] t_ave = new double[n]; t_ave new double[n] n for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            h[i] = sc.nextInt();
        } {
            h[i] = sc.nextInt();
        } h[i] = sc.nextInt() h[i] h i sc.nextInt() sc.nextInt sc for (int i = 0; i < n; i++) {
            t_ave[i] = t - h[i] * 0.006;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            t_ave[i] = t - h[i] * 0.006;
        } {
            t_ave[i] = t - h[i] * 0.006;
        } t_ave[i] = t - h[i] * 0.006 t_ave[i] t_ave i t - h[i] * 0.006 t h[i] * 0.006 h[i] h i 0.006 double min = Math.abs(a - t_ave[0]); min Math.abs(a - t_ave[0]) Math.abs Math a - t_ave[0] a t_ave[0] t_ave 0 for (int i = 1; i < n; i++) {
            if (min > Math.abs(a - t_ave[i])) {
                min = Math.abs(a - t_ave[i]);
                flag = i + 1;
            }
        } int i = 1; int i = 1; i 1 i < n i n i++ i++ i {
            if (min > Math.abs(a - t_ave[i])) {
                min = Math.abs(a - t_ave[i]);
                flag = i + 1;
            }
        } {
            if (min > Math.abs(a - t_ave[i])) {
                min = Math.abs(a - t_ave[i]);
                flag = i + 1;
            }
        } if (min > Math.abs(a - t_ave[i])) {
                min = Math.abs(a - t_ave[i]);
                flag = i + 1;
            } min > Math.abs(a - t_ave[i]) min Math.abs(a - t_ave[i]) Math.abs Math a - t_ave[i] a t_ave[i] t_ave i {
                min = Math.abs(a - t_ave[i]);
                flag = i + 1;
            } min = Math.abs(a - t_ave[i]) min Math.abs(a - t_ave[i]) Math.abs Math a - t_ave[i] a t_ave[i] t_ave i flag = i + 1 flag i + 1 i 1 System.out.println(flag) System.out.println System.out System System.out flag 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();
        double a = sc.nextDouble();
        int[] h = new int[n];
        int flag = 1;
        double[] t_ave = new double[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        for (int i = 0; i < n; i++) {
            t_ave[i] = t - h[i] * 0.006;
        }
        double min = Math.abs(a - t_ave[0]);
        for (int i = 1; i < n; i++) {
            if (min > Math.abs(a - t_ave[i])) {
                min = Math.abs(a - t_ave[i]);
                flag = i + 1;
            }
        }
        System.out.println(flag);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        double a = sc.nextDouble();
        int[] h = new int[n];
        int flag = 1;
        double[] t_ave = new double[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        for (int i = 0; i < n; i++) {
            t_ave[i] = t - h[i] * 0.006;
        }
        double min = Math.abs(a - t_ave[0]);
        for (int i = 1; i < n; i++) {
            if (min > Math.abs(a - t_ave[i])) {
                min = Math.abs(a - t_ave[i]);
                flag = i + 1;
            }
        }
        System.out.println(flag);
    }
} 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();
        double a = sc.nextDouble();
        int[] h = new int[n];
        int flag = 1;
        double[] t_ave = new double[n];
        for (int i = 0; i < n; i++) {
            h[i] = sc.nextInt();
        }
        for (int i = 0; i < n; i++) {
            t_ave[i] = t - h[i] * 0.006;
        }
        double min = Math.abs(a - t_ave[0]);
        for (int i = 1; i < n; i++) {
            if (min > Math.abs(a - t_ave[i])) {
                min = Math.abs(a - t_ave[i]);
                flag = i + 1;
            }
        }
        System.out.println(flag);
    }
}