import java.util.Scanner;

class Main {
    public static void main(final String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int t = scan.nextInt();
        int a = scan.nextInt();
        int[] h = new int[n];
        for (int i = 0; i < n; i++) {
            h[i] = scan.nextInt();
        }
        double min = Integer.MAX_VALUE;
        int ans = 0;
        for (int i = 0; i < n; i++) {
          double tem = (t-(h[i] * 0.006));
          if (min > Math.abs(tem - a)) {
              min = Math.abs(tem - a);
              ans = i+1;
          }
        }
        System.out.println(ans);
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(final String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int t = scan.nextInt();
        int a = scan.nextInt();
        int[] h = new int[n];
        for (int i = 0; i < n; i++) {
            h[i] = scan.nextInt();
        }
        double min = Integer.MAX_VALUE;
        int ans = 0;
        for (int i = 0; i < n; i++) {
          double tem = (t-(h[i] * 0.006));
          if (min > Math.abs(tem - a)) {
              min = Math.abs(tem - a);
              ans = i+1;
          }
        }
        System.out.println(ans);
    }
} Main public static void main(final String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int t = scan.nextInt();
        int a = scan.nextInt();
        int[] h = new int[n];
        for (int i = 0; i < n; i++) {
            h[i] = scan.nextInt();
        }
        double min = Integer.MAX_VALUE;
        int ans = 0;
        for (int i = 0; i < n; i++) {
          double tem = (t-(h[i] * 0.006));
          if (min > Math.abs(tem - a)) {
              min = Math.abs(tem - a);
              ans = i+1;
          }
        }
        System.out.println(ans);
    } main {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int t = scan.nextInt();
        int a = scan.nextInt();
        int[] h = new int[n];
        for (int i = 0; i < n; i++) {
            h[i] = scan.nextInt();
        }
        double min = Integer.MAX_VALUE;
        int ans = 0;
        for (int i = 0; i < n; i++) {
          double tem = (t-(h[i] * 0.006));
          if (min > Math.abs(tem - a)) {
              min = Math.abs(tem - a);
              ans = i+1;
          }
        }
        System.out.println(ans);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int t = scan.nextInt(); t scan.nextInt() scan.nextInt scan int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int[] h = new int[n]; h new int[n] n for (int i = 0; i < n; i++) {
            h[i] = scan.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            h[i] = scan.nextInt();
        } {
            h[i] = scan.nextInt();
        } h[i] = scan.nextInt() h[i] h i scan.nextInt() scan.nextInt scan double min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE int ans = 0; ans 0 for (int i = 0; i < n; i++) {
          double tem = (t-(h[i] * 0.006));
          if (min > Math.abs(tem - a)) {
              min = Math.abs(tem - a);
              ans = i+1;
          }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
          double tem = (t-(h[i] * 0.006));
          if (min > Math.abs(tem - a)) {
              min = Math.abs(tem - a);
              ans = i+1;
          }
        } {
          double tem = (t-(h[i] * 0.006));
          if (min > Math.abs(tem - a)) {
              min = Math.abs(tem - a);
              ans = i+1;
          }
        } double tem = (t-(h[i] * 0.006)); tem (t-(h[i] * 0.006)) t (h[i] * 0.006) h[i] h i 0.006 if (min > Math.abs(tem - a)) {
              min = Math.abs(tem - a);
              ans = i+1;
          } min > Math.abs(tem - a) min Math.abs(tem - a) Math.abs Math tem - a tem a {
              min = Math.abs(tem - a);
              ans = i+1;
          } min = Math.abs(tem - a) min Math.abs(tem - a) Math.abs Math tem - a tem a ans = i+1 ans i+1 i 1 System.out.println(ans) System.out.println System.out System System.out ans final String[] args args
import java.util.Scanner;

class Main {
    public static void main(final String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int t = scan.nextInt();
        int a = scan.nextInt();
        int[] h = new int[n];
        for (int i = 0; i < n; i++) {
            h[i] = scan.nextInt();
        }
        double min = Integer.MAX_VALUE;
        int ans = 0;
        for (int i = 0; i < n; i++) {
          double tem = (t-(h[i] * 0.006));
          if (min > Math.abs(tem - a)) {
              min = Math.abs(tem - a);
              ans = i+1;
          }
        }
        System.out.println(ans);
    }
}
