import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int N = Integer.parseInt(scan.next());
        int T = Integer.parseInt(scan.next());
        int A = Integer.parseInt(scan.next());
        int H;
        int temp;
        int res = 0;
        int cc = 1000000000;

        int i =0;
        for(i = 1; i <= N; i++){

            H = Integer.parseInt(scan.next());
            temp = T*1000 - H * 6 - A*1000;
            if(temp < 0 ) temp = -temp;
            if(temp < cc){
                cc = temp;
                res = i;
            }
        }

        System.out.println(res);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int N = Integer.parseInt(scan.next());
        int T = Integer.parseInt(scan.next());
        int A = Integer.parseInt(scan.next());
        int H;
        int temp;
        int res = 0;
        int cc = 1000000000;

        int i =0;
        for(i = 1; i <= N; i++){

            H = Integer.parseInt(scan.next());
            temp = T*1000 - H * 6 - A*1000;
            if(temp < 0 ) temp = -temp;
            if(temp < cc){
                cc = temp;
                res = i;
            }
        }

        System.out.println(res);
    }
} Main public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int N = Integer.parseInt(scan.next());
        int T = Integer.parseInt(scan.next());
        int A = Integer.parseInt(scan.next());
        int H;
        int temp;
        int res = 0;
        int cc = 1000000000;

        int i =0;
        for(i = 1; i <= N; i++){

            H = Integer.parseInt(scan.next());
            temp = T*1000 - H * 6 - A*1000;
            if(temp < 0 ) temp = -temp;
            if(temp < cc){
                cc = temp;
                res = i;
            }
        }

        System.out.println(res);
    } main {

        Scanner scan = new Scanner(System.in);
        int N = Integer.parseInt(scan.next());
        int T = Integer.parseInt(scan.next());
        int A = Integer.parseInt(scan.next());
        int H;
        int temp;
        int res = 0;
        int cc = 1000000000;

        int i =0;
        for(i = 1; i <= N; i++){

            H = Integer.parseInt(scan.next());
            temp = T*1000 - H * 6 - A*1000;
            if(temp < 0 ) temp = -temp;
            if(temp < cc){
                cc = temp;
                res = i;
            }
        }

        System.out.println(res);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = Integer.parseInt(scan.next()); N Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int T = Integer.parseInt(scan.next()); T Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int A = Integer.parseInt(scan.next()); A Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int H; H int temp; temp int res = 0; res 0 int cc = 1000000000; cc 1000000000 int i =0; i 0 for(i = 1; i <= N; i++){

            H = Integer.parseInt(scan.next());
            temp = T*1000 - H * 6 - A*1000;
            if(temp < 0 ) temp = -temp;
            if(temp < cc){
                cc = temp;
                res = i;
            }
        } i = 1; i = 1 i 1 i <= N i N i++ i++ i {

            H = Integer.parseInt(scan.next());
            temp = T*1000 - H * 6 - A*1000;
            if(temp < 0 ) temp = -temp;
            if(temp < cc){
                cc = temp;
                res = i;
            }
        } {

            H = Integer.parseInt(scan.next());
            temp = T*1000 - H * 6 - A*1000;
            if(temp < 0 ) temp = -temp;
            if(temp < cc){
                cc = temp;
                res = i;
            }
        } H = Integer.parseInt(scan.next()) H Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan temp = T*1000 - H * 6 - A*1000 temp T*1000 - H * 6 - A*1000 T*1000 - H * 6 - A*1000 T*1000 T 1000 H * 6 H 6 A*1000 A 1000 if(temp < 0 ) temp = -temp; temp < 0 temp 0 temp = -temp temp -temp temp if(temp < cc){
                cc = temp;
                res = i;
            } temp < cc temp cc {
                cc = temp;
                res = i;
            } cc = temp cc temp res = i res i System.out.println(res) System.out.println System.out System System.out res String[] args args public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int N = Integer.parseInt(scan.next());
        int T = Integer.parseInt(scan.next());
        int A = Integer.parseInt(scan.next());
        int H;
        int temp;
        int res = 0;
        int cc = 1000000000;

        int i =0;
        for(i = 1; i <= N; i++){

            H = Integer.parseInt(scan.next());
            temp = T*1000 - H * 6 - A*1000;
            if(temp < 0 ) temp = -temp;
            if(temp < cc){
                cc = temp;
                res = i;
            }
        }

        System.out.println(res);
    }
} public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int N = Integer.parseInt(scan.next());
        int T = Integer.parseInt(scan.next());
        int A = Integer.parseInt(scan.next());
        int H;
        int temp;
        int res = 0;
        int cc = 1000000000;

        int i =0;
        for(i = 1; i <= N; i++){

            H = Integer.parseInt(scan.next());
            temp = T*1000 - H * 6 - A*1000;
            if(temp < 0 ) temp = -temp;
            if(temp < cc){
                cc = temp;
                res = i;
            }
        }

        System.out.println(res);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int N = Integer.parseInt(scan.next());
        int T = Integer.parseInt(scan.next());
        int A = Integer.parseInt(scan.next());
        int H;
        int temp;
        int res = 0;
        int cc = 1000000000;

        int i =0;
        for(i = 1; i <= N; i++){

            H = Integer.parseInt(scan.next());
            temp = T*1000 - H * 6 - A*1000;
            if(temp < 0 ) temp = -temp;
            if(temp < cc){
                cc = temp;
                res = i;
            }
        }

        System.out.println(res);
    }
}