import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        int baseTmp = scanner.nextInt();
        int preferableTmp = scanner.nextInt();
        int[] location = new int[givenNumber];
        for(int i=0; i<givenNumber; i++) {
            location[i] = scanner.nextInt();
        }
        double tmpDif = 0;
        double currentDif = 0;
        int targetIndex = 0;
        for(int j=0; j<location.length; j++) {
            tmpDif = Math.abs((baseTmp - location[j] * 0.006) - preferableTmp);
            if(j == 0) {
                targetIndex = j;
                currentDif = tmpDif;
            }
            if(currentDif > tmpDif) {
                targetIndex = j;
                currentDif = tmpDif;
            }
        }
        System.out.println(targetIndex+1);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        int baseTmp = scanner.nextInt();
        int preferableTmp = scanner.nextInt();
        int[] location = new int[givenNumber];
        for(int i=0; i<givenNumber; i++) {
            location[i] = scanner.nextInt();
        }
        double tmpDif = 0;
        double currentDif = 0;
        int targetIndex = 0;
        for(int j=0; j<location.length; j++) {
            tmpDif = Math.abs((baseTmp - location[j] * 0.006) - preferableTmp);
            if(j == 0) {
                targetIndex = j;
                currentDif = tmpDif;
            }
            if(currentDif > tmpDif) {
                targetIndex = j;
                currentDif = tmpDif;
            }
        }
        System.out.println(targetIndex+1);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        int baseTmp = scanner.nextInt();
        int preferableTmp = scanner.nextInt();
        int[] location = new int[givenNumber];
        for(int i=0; i<givenNumber; i++) {
            location[i] = scanner.nextInt();
        }
        double tmpDif = 0;
        double currentDif = 0;
        int targetIndex = 0;
        for(int j=0; j<location.length; j++) {
            tmpDif = Math.abs((baseTmp - location[j] * 0.006) - preferableTmp);
            if(j == 0) {
                targetIndex = j;
                currentDif = tmpDif;
            }
            if(currentDif > tmpDif) {
                targetIndex = j;
                currentDif = tmpDif;
            }
        }
        System.out.println(targetIndex+1);
    } main {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        int baseTmp = scanner.nextInt();
        int preferableTmp = scanner.nextInt();
        int[] location = new int[givenNumber];
        for(int i=0; i<givenNumber; i++) {
            location[i] = scanner.nextInt();
        }
        double tmpDif = 0;
        double currentDif = 0;
        int targetIndex = 0;
        for(int j=0; j<location.length; j++) {
            tmpDif = Math.abs((baseTmp - location[j] * 0.006) - preferableTmp);
            if(j == 0) {
                targetIndex = j;
                currentDif = tmpDif;
            }
            if(currentDif > tmpDif) {
                targetIndex = j;
                currentDif = tmpDif;
            }
        }
        System.out.println(targetIndex+1);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int givenNumber = scanner.nextInt(); givenNumber scanner.nextInt() scanner.nextInt scanner int baseTmp = scanner.nextInt(); baseTmp scanner.nextInt() scanner.nextInt scanner int preferableTmp = scanner.nextInt(); preferableTmp scanner.nextInt() scanner.nextInt scanner int[] location = new int[givenNumber]; location new int[givenNumber] givenNumber for(int i=0; i<givenNumber; i++) {
            location[i] = scanner.nextInt();
        } int i=0; int i=0; i 0 i<givenNumber i givenNumber i++ i++ i {
            location[i] = scanner.nextInt();
        } {
            location[i] = scanner.nextInt();
        } location[i] = scanner.nextInt() location[i] location i scanner.nextInt() scanner.nextInt scanner double tmpDif = 0; tmpDif 0 double currentDif = 0; currentDif 0 int targetIndex = 0; targetIndex 0 for(int j=0; j<location.length; j++) {
            tmpDif = Math.abs((baseTmp - location[j] * 0.006) - preferableTmp);
            if(j == 0) {
                targetIndex = j;
                currentDif = tmpDif;
            }
            if(currentDif > tmpDif) {
                targetIndex = j;
                currentDif = tmpDif;
            }
        } int j=0; int j=0; j 0 j<location.length j location.length location location.length j++ j++ j {
            tmpDif = Math.abs((baseTmp - location[j] * 0.006) - preferableTmp);
            if(j == 0) {
                targetIndex = j;
                currentDif = tmpDif;
            }
            if(currentDif > tmpDif) {
                targetIndex = j;
                currentDif = tmpDif;
            }
        } {
            tmpDif = Math.abs((baseTmp - location[j] * 0.006) - preferableTmp);
            if(j == 0) {
                targetIndex = j;
                currentDif = tmpDif;
            }
            if(currentDif > tmpDif) {
                targetIndex = j;
                currentDif = tmpDif;
            }
        } tmpDif = Math.abs((baseTmp - location[j] * 0.006) - preferableTmp) tmpDif Math.abs((baseTmp - location[j] * 0.006) - preferableTmp) Math.abs Math (baseTmp - location[j] * 0.006) - preferableTmp (baseTmp - location[j] * 0.006) baseTmp location[j] * 0.006 location[j] location j 0.006 preferableTmp if(j == 0) {
                targetIndex = j;
                currentDif = tmpDif;
            } j == 0 j 0 {
                targetIndex = j;
                currentDif = tmpDif;
            } targetIndex = j targetIndex j currentDif = tmpDif currentDif tmpDif if(currentDif > tmpDif) {
                targetIndex = j;
                currentDif = tmpDif;
            } currentDif > tmpDif currentDif tmpDif {
                targetIndex = j;
                currentDif = tmpDif;
            } targetIndex = j targetIndex j currentDif = tmpDif currentDif tmpDif System.out.println(targetIndex+1) System.out.println System.out System System.out targetIndex+1 targetIndex 1 String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        int baseTmp = scanner.nextInt();
        int preferableTmp = scanner.nextInt();
        int[] location = new int[givenNumber];
        for(int i=0; i<givenNumber; i++) {
            location[i] = scanner.nextInt();
        }
        double tmpDif = 0;
        double currentDif = 0;
        int targetIndex = 0;
        for(int j=0; j<location.length; j++) {
            tmpDif = Math.abs((baseTmp - location[j] * 0.006) - preferableTmp);
            if(j == 0) {
                targetIndex = j;
                currentDif = tmpDif;
            }
            if(currentDif > tmpDif) {
                targetIndex = j;
                currentDif = tmpDif;
            }
        }
        System.out.println(targetIndex+1);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        int baseTmp = scanner.nextInt();
        int preferableTmp = scanner.nextInt();
        int[] location = new int[givenNumber];
        for(int i=0; i<givenNumber; i++) {
            location[i] = scanner.nextInt();
        }
        double tmpDif = 0;
        double currentDif = 0;
        int targetIndex = 0;
        for(int j=0; j<location.length; j++) {
            tmpDif = Math.abs((baseTmp - location[j] * 0.006) - preferableTmp);
            if(j == 0) {
                targetIndex = j;
                currentDif = tmpDif;
            }
            if(currentDif > tmpDif) {
                targetIndex = j;
                currentDif = tmpDif;
            }
        }
        System.out.println(targetIndex+1);
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int givenNumber = scanner.nextInt();
        int baseTmp = scanner.nextInt();
        int preferableTmp = scanner.nextInt();
        int[] location = new int[givenNumber];
        for(int i=0; i<givenNumber; i++) {
            location[i] = scanner.nextInt();
        }
        double tmpDif = 0;
        double currentDif = 0;
        int targetIndex = 0;
        for(int j=0; j<location.length; j++) {
            tmpDif = Math.abs((baseTmp - location[j] * 0.006) - preferableTmp);
            if(j == 0) {
                targetIndex = j;
                currentDif = tmpDif;
            }
            if(currentDif > tmpDif) {
                targetIndex = j;
                currentDif = tmpDif;
            }
        }
        System.out.println(targetIndex+1);
    }
}
