import java.util.Scanner;

public class Main {
    private static Scanner sc = new Scanner(System.in);
    static int N;
    static int T;
    static int A;
    static int []elevations;
    public static void main(String[] args) {
        N = sc.nextInt();
        T = sc.nextInt();
        A = sc.nextInt();
        //how to convert tokenized string to int array? 
        elevations = new int[N];
        for(int i = 0; i < N; ++i) {
            elevations[i] = sc.nextInt();
        }
        double minDiff = Math.abs(A - avgTemp(0));
        int minIndex = 0;
        for(int i = 0; i< N;++i) {
            double diff = Math.abs(A - avgTemp(i));
            if(diff < minDiff) {
                minDiff = diff;
                minIndex = i;
            }
          /*System.out.println(i+" "+diff);
          System.out.println("minDiff="+minDiff);
          System.out.println("minIndex="+minIndex);*/
        }
        System.out.println(minIndex + 1);
    }
    public static double avgTemp(int index) {
        double res = 0.0;
        res = T - (elevations[index] * 0.006);
      //System.out.println("avgTemp="+res);
        return res;
    }

} import java.util.Scanner; Scanner java.util public class Main {
    private static Scanner sc = new Scanner(System.in);
    static int N;
    static int T;
    static int A;
    static int []elevations;
    public static void main(String[] args) {
        N = sc.nextInt();
        T = sc.nextInt();
        A = sc.nextInt();
        //how to convert tokenized string to int array? 
        elevations = new int[N];
        for(int i = 0; i < N; ++i) {
            elevations[i] = sc.nextInt();
        }
        double minDiff = Math.abs(A - avgTemp(0));
        int minIndex = 0;
        for(int i = 0; i< N;++i) {
            double diff = Math.abs(A - avgTemp(i));
            if(diff < minDiff) {
                minDiff = diff;
                minIndex = i;
            }
          /*System.out.println(i+" "+diff);
          System.out.println("minDiff="+minDiff);
          System.out.println("minIndex="+minIndex);*/
        }
        System.out.println(minIndex + 1);
    }
    public static double avgTemp(int index) {
        double res = 0.0;
        res = T - (elevations[index] * 0.006);
      //System.out.println("avgTemp="+res);
        return res;
    }

} Main private static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static int N; N static int T; T static int A; A static int []elevations; elevations public static void main(String[] args) {
        N = sc.nextInt();
        T = sc.nextInt();
        A = sc.nextInt();
        //how to convert tokenized string to int array? 
        elevations = new int[N];
        for(int i = 0; i < N; ++i) {
            elevations[i] = sc.nextInt();
        }
        double minDiff = Math.abs(A - avgTemp(0));
        int minIndex = 0;
        for(int i = 0; i< N;++i) {
            double diff = Math.abs(A - avgTemp(i));
            if(diff < minDiff) {
                minDiff = diff;
                minIndex = i;
            }
          /*System.out.println(i+" "+diff);
          System.out.println("minDiff="+minDiff);
          System.out.println("minIndex="+minIndex);*/
        }
        System.out.println(minIndex + 1);
    } main {
        N = sc.nextInt();
        T = sc.nextInt();
        A = sc.nextInt();
        //how to convert tokenized string to int array? 
        elevations = new int[N];
        for(int i = 0; i < N; ++i) {
            elevations[i] = sc.nextInt();
        }
        double minDiff = Math.abs(A - avgTemp(0));
        int minIndex = 0;
        for(int i = 0; i< N;++i) {
            double diff = Math.abs(A - avgTemp(i));
            if(diff < minDiff) {
                minDiff = diff;
                minIndex = i;
            }
          /*System.out.println(i+" "+diff);
          System.out.println("minDiff="+minDiff);
          System.out.println("minIndex="+minIndex);*/
        }
        System.out.println(minIndex + 1);
    } N = sc.nextInt() N sc.nextInt() sc.nextInt sc T = sc.nextInt() T sc.nextInt() sc.nextInt sc A = sc.nextInt() A sc.nextInt() sc.nextInt sc elevations = new int[N] elevations new int[N] N for(int i = 0; i < N; ++i) {
            elevations[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N ++i ++i i {
            elevations[i] = sc.nextInt();
        } {
            elevations[i] = sc.nextInt();
        } elevations[i] = sc.nextInt() elevations[i] elevations i sc.nextInt() sc.nextInt sc double minDiff = Math.abs(A - avgTemp(0)); minDiff Math.abs(A - avgTemp(0)) Math.abs Math A - avgTemp(0) A avgTemp(0) avgTemp 0 int minIndex = 0; minIndex 0 for(int i = 0; i< N;++i) {
            double diff = Math.abs(A - avgTemp(i));
            if(diff < minDiff) {
                minDiff = diff;
                minIndex = i;
            }
          /*System.out.println(i+" "+diff);
          System.out.println("minDiff="+minDiff);
          System.out.println("minIndex="+minIndex);*/
        } int i = 0; int i = 0; i 0 i< N i N ++i ++i i {
            double diff = Math.abs(A - avgTemp(i));
            if(diff < minDiff) {
                minDiff = diff;
                minIndex = i;
            }
          /*System.out.println(i+" "+diff);
          System.out.println("minDiff="+minDiff);
          System.out.println("minIndex="+minIndex);*/
        } {
            double diff = Math.abs(A - avgTemp(i));
            if(diff < minDiff) {
                minDiff = diff;
                minIndex = i;
            }
          /*System.out.println(i+" "+diff);
          System.out.println("minDiff="+minDiff);
          System.out.println("minIndex="+minIndex);*/
        } double diff = Math.abs(A - avgTemp(i)); diff Math.abs(A - avgTemp(i)) Math.abs Math A - avgTemp(i) A avgTemp(i) avgTemp i if(diff < minDiff) {
                minDiff = diff;
                minIndex = i;
            } diff < minDiff diff minDiff {
                minDiff = diff;
                minIndex = i;
            } minDiff = diff minDiff diff minIndex = i minIndex i System.out.println(minIndex + 1) System.out.println System.out System System.out minIndex + 1 minIndex 1 String[] args args public static double avgTemp(int index) {
        double res = 0.0;
        res = T - (elevations[index] * 0.006);
      //System.out.println("avgTemp="+res);
        return res;
    } avgTemp {
        double res = 0.0;
        res = T - (elevations[index] * 0.006);
      //System.out.println("avgTemp="+res);
        return res;
    } double res = 0.0; res 0.0 res = T - (elevations[index] * 0.006) res T - (elevations[index] * 0.006) T (elevations[index] * 0.006) elevations[index] elevations index 0.006 return res; res int index index public class Main {
    private static Scanner sc = new Scanner(System.in);
    static int N;
    static int T;
    static int A;
    static int []elevations;
    public static void main(String[] args) {
        N = sc.nextInt();
        T = sc.nextInt();
        A = sc.nextInt();
        //how to convert tokenized string to int array? 
        elevations = new int[N];
        for(int i = 0; i < N; ++i) {
            elevations[i] = sc.nextInt();
        }
        double minDiff = Math.abs(A - avgTemp(0));
        int minIndex = 0;
        for(int i = 0; i< N;++i) {
            double diff = Math.abs(A - avgTemp(i));
            if(diff < minDiff) {
                minDiff = diff;
                minIndex = i;
            }
          /*System.out.println(i+" "+diff);
          System.out.println("minDiff="+minDiff);
          System.out.println("minIndex="+minIndex);*/
        }
        System.out.println(minIndex + 1);
    }
    public static double avgTemp(int index) {
        double res = 0.0;
        res = T - (elevations[index] * 0.006);
      //System.out.println("avgTemp="+res);
        return res;
    }

} public class Main {
    private static Scanner sc = new Scanner(System.in);
    static int N;
    static int T;
    static int A;
    static int []elevations;
    public static void main(String[] args) {
        N = sc.nextInt();
        T = sc.nextInt();
        A = sc.nextInt();
        //how to convert tokenized string to int array? 
        elevations = new int[N];
        for(int i = 0; i < N; ++i) {
            elevations[i] = sc.nextInt();
        }
        double minDiff = Math.abs(A - avgTemp(0));
        int minIndex = 0;
        for(int i = 0; i< N;++i) {
            double diff = Math.abs(A - avgTemp(i));
            if(diff < minDiff) {
                minDiff = diff;
                minIndex = i;
            }
          /*System.out.println(i+" "+diff);
          System.out.println("minDiff="+minDiff);
          System.out.println("minIndex="+minIndex);*/
        }
        System.out.println(minIndex + 1);
    }
    public static double avgTemp(int index) {
        double res = 0.0;
        res = T - (elevations[index] * 0.006);
      //System.out.println("avgTemp="+res);
        return res;
    }

} Main
import java.util.Scanner;

public class Main {
    private static Scanner sc = new Scanner(System.in);
    static int N;
    static int T;
    static int A;
    static int []elevations;
    public static void main(String[] args) {
        N = sc.nextInt();
        T = sc.nextInt();
        A = sc.nextInt();
        //how to convert tokenized string to int array? 
        elevations = new int[N];
        for(int i = 0; i < N; ++i) {
            elevations[i] = sc.nextInt();
        }
        double minDiff = Math.abs(A - avgTemp(0));
        int minIndex = 0;
        for(int i = 0; i< N;++i) {
            double diff = Math.abs(A - avgTemp(i));
            if(diff < minDiff) {
                minDiff = diff;
                minIndex = i;
            }
          /*System.out.println(i+" "+diff);
          System.out.println("minDiff="+minDiff);
          System.out.println("minIndex="+minIndex);*/
        }
        System.out.println(minIndex + 1);
    }
    public static double avgTemp(int index) {
        double res = 0.0;
        res = T - (elevations[index] * 0.006);
      //System.out.println("avgTemp="+res);
        return res;
    }

}
