import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int source = Integer.parseInt(sc.next());
        int target = Integer.parseInt(sc.next());
        int[] palace = new int[n];
        int ans = 0;
        double min = Integer.MAX_VALUE;
        for (int i = 0; i < n; i ++) {
            palace[i] = Integer.parseInt(sc.next());
            double tmp = (source-(palace[i] * 0.006));
            if (min > Math.abs(tmp - target)) {
                 min = Math.abs(tmp - target);
                 ans = i;
            }
        }
        System.out.println(ans + 1);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int source = Integer.parseInt(sc.next());
        int target = Integer.parseInt(sc.next());
        int[] palace = new int[n];
        int ans = 0;
        double min = Integer.MAX_VALUE;
        for (int i = 0; i < n; i ++) {
            palace[i] = Integer.parseInt(sc.next());
            double tmp = (source-(palace[i] * 0.006));
            if (min > Math.abs(tmp - target)) {
                 min = Math.abs(tmp - target);
                 ans = i;
            }
        }
        System.out.println(ans + 1);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int source = Integer.parseInt(sc.next());
        int target = Integer.parseInt(sc.next());
        int[] palace = new int[n];
        int ans = 0;
        double min = Integer.MAX_VALUE;
        for (int i = 0; i < n; i ++) {
            palace[i] = Integer.parseInt(sc.next());
            double tmp = (source-(palace[i] * 0.006));
            if (min > Math.abs(tmp - target)) {
                 min = Math.abs(tmp - target);
                 ans = i;
            }
        }
        System.out.println(ans + 1);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int source = Integer.parseInt(sc.next());
        int target = Integer.parseInt(sc.next());
        int[] palace = new int[n];
        int ans = 0;
        double min = Integer.MAX_VALUE;
        for (int i = 0; i < n; i ++) {
            palace[i] = Integer.parseInt(sc.next());
            double tmp = (source-(palace[i] * 0.006));
            if (min > Math.abs(tmp - target)) {
                 min = Math.abs(tmp - target);
                 ans = i;
            }
        }
        System.out.println(ans + 1);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int source = Integer.parseInt(sc.next()); source Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int target = Integer.parseInt(sc.next()); target Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] palace = new int[n]; palace new int[n] n int ans = 0; ans 0 double min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE for (int i = 0; i < n; i ++) {
            palace[i] = Integer.parseInt(sc.next());
            double tmp = (source-(palace[i] * 0.006));
            if (min > Math.abs(tmp - target)) {
                 min = Math.abs(tmp - target);
                 ans = i;
            }
        } int i = 0; int i = 0; i 0 i < n i n i ++ i ++ i {
            palace[i] = Integer.parseInt(sc.next());
            double tmp = (source-(palace[i] * 0.006));
            if (min > Math.abs(tmp - target)) {
                 min = Math.abs(tmp - target);
                 ans = i;
            }
        } {
            palace[i] = Integer.parseInt(sc.next());
            double tmp = (source-(palace[i] * 0.006));
            if (min > Math.abs(tmp - target)) {
                 min = Math.abs(tmp - target);
                 ans = i;
            }
        } palace[i] = Integer.parseInt(sc.next()) palace[i] palace i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc double tmp = (source-(palace[i] * 0.006)); tmp (source-(palace[i] * 0.006)) source (palace[i] * 0.006) palace[i] palace i 0.006 if (min > Math.abs(tmp - target)) {
                 min = Math.abs(tmp - target);
                 ans = i;
            } min > Math.abs(tmp - target) min Math.abs(tmp - target) Math.abs Math tmp - target tmp target {
                 min = Math.abs(tmp - target);
                 ans = i;
            } min = Math.abs(tmp - target) min Math.abs(tmp - target) Math.abs Math tmp - target tmp target ans = i ans i System.out.println(ans + 1) System.out.println System.out System System.out ans + 1 ans 1 String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int source = Integer.parseInt(sc.next());
        int target = Integer.parseInt(sc.next());
        int[] palace = new int[n];
        int ans = 0;
        double min = Integer.MAX_VALUE;
        for (int i = 0; i < n; i ++) {
            palace[i] = Integer.parseInt(sc.next());
            double tmp = (source-(palace[i] * 0.006));
            if (min > Math.abs(tmp - target)) {
                 min = Math.abs(tmp - target);
                 ans = i;
            }
        }
        System.out.println(ans + 1);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int source = Integer.parseInt(sc.next());
        int target = Integer.parseInt(sc.next());
        int[] palace = new int[n];
        int ans = 0;
        double min = Integer.MAX_VALUE;
        for (int i = 0; i < n; i ++) {
            palace[i] = Integer.parseInt(sc.next());
            double tmp = (source-(palace[i] * 0.006));
            if (min > Math.abs(tmp - target)) {
                 min = Math.abs(tmp - target);
                 ans = i;
            }
        }
        System.out.println(ans + 1);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int source = Integer.parseInt(sc.next());
        int target = Integer.parseInt(sc.next());
        int[] palace = new int[n];
        int ans = 0;
        double min = Integer.MAX_VALUE;
        for (int i = 0; i < n; i ++) {
            palace[i] = Integer.parseInt(sc.next());
            double tmp = (source-(palace[i] * 0.006));
            if (min > Math.abs(tmp - target)) {
                 min = Math.abs(tmp - target);
                 ans = i;
            }
        }
        System.out.println(ans + 1);
    }
}
