import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        
        int N = Integer.parseInt(sc.next());
        
        int T = Integer.parseInt(sc.next());
        int A = Integer.parseInt(sc.next());
        
        int res = 0;
        double cnt = Integer.MAX_VALUE;
        
        for(int i = 0; i < N; i++){
            String s = sc.next();
            
            double d = Math.abs(A - (T - Integer.parseInt(s) * 0.006));
            
            if(cnt > d){
               cnt = d;
               res = i+1;
            }
        }
        
        System.out.println(res);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        
        int N = Integer.parseInt(sc.next());
        
        int T = Integer.parseInt(sc.next());
        int A = Integer.parseInt(sc.next());
        
        int res = 0;
        double cnt = Integer.MAX_VALUE;
        
        for(int i = 0; i < N; i++){
            String s = sc.next();
            
            double d = Math.abs(A - (T - Integer.parseInt(s) * 0.006));
            
            if(cnt > d){
               cnt = d;
               res = i+1;
            }
        }
        
        System.out.println(res);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        
        int N = Integer.parseInt(sc.next());
        
        int T = Integer.parseInt(sc.next());
        int A = Integer.parseInt(sc.next());
        
        int res = 0;
        double cnt = Integer.MAX_VALUE;
        
        for(int i = 0; i < N; i++){
            String s = sc.next();
            
            double d = Math.abs(A - (T - Integer.parseInt(s) * 0.006));
            
            if(cnt > d){
               cnt = d;
               res = i+1;
            }
        }
        
        System.out.println(res);
    } main {
        Scanner sc = new Scanner(System.in);
        
        int N = Integer.parseInt(sc.next());
        
        int T = Integer.parseInt(sc.next());
        int A = Integer.parseInt(sc.next());
        
        int res = 0;
        double cnt = Integer.MAX_VALUE;
        
        for(int i = 0; i < N; i++){
            String s = sc.next();
            
            double d = Math.abs(A - (T - Integer.parseInt(s) * 0.006));
            
            if(cnt > d){
               cnt = d;
               res = i+1;
            }
        }
        
        System.out.println(res);
    } 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 T = Integer.parseInt(sc.next()); T Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int A = Integer.parseInt(sc.next()); A Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int res = 0; res 0 double cnt = Integer.MAX_VALUE; cnt Integer.MAX_VALUE Integer Integer.MAX_VALUE for(int i = 0; i < N; i++){
            String s = sc.next();
            
            double d = Math.abs(A - (T - Integer.parseInt(s) * 0.006));
            
            if(cnt > d){
               cnt = d;
               res = i+1;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            String s = sc.next();
            
            double d = Math.abs(A - (T - Integer.parseInt(s) * 0.006));
            
            if(cnt > d){
               cnt = d;
               res = i+1;
            }
        } {
            String s = sc.next();
            
            double d = Math.abs(A - (T - Integer.parseInt(s) * 0.006));
            
            if(cnt > d){
               cnt = d;
               res = i+1;
            }
        } String s = sc.next(); s sc.next() sc.next sc double d = Math.abs(A - (T - Integer.parseInt(s) * 0.006)); d Math.abs(A - (T - Integer.parseInt(s) * 0.006)) Math.abs Math A - (T - Integer.parseInt(s) * 0.006) A (T - Integer.parseInt(s) * 0.006) T Integer.parseInt(s) * 0.006 Integer.parseInt(s) Integer.parseInt Integer s 0.006 if(cnt > d){
               cnt = d;
               res = i+1;
            } cnt > d cnt d {
               cnt = d;
               res = i+1;
            } cnt = d cnt d res = i+1 res i+1 i 1 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 sc = new Scanner(System.in);
        
        int N = Integer.parseInt(sc.next());
        
        int T = Integer.parseInt(sc.next());
        int A = Integer.parseInt(sc.next());
        
        int res = 0;
        double cnt = Integer.MAX_VALUE;
        
        for(int i = 0; i < N; i++){
            String s = sc.next();
            
            double d = Math.abs(A - (T - Integer.parseInt(s) * 0.006));
            
            if(cnt > d){
               cnt = d;
               res = i+1;
            }
        }
        
        System.out.println(res);
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        
        int N = Integer.parseInt(sc.next());
        
        int T = Integer.parseInt(sc.next());
        int A = Integer.parseInt(sc.next());
        
        int res = 0;
        double cnt = Integer.MAX_VALUE;
        
        for(int i = 0; i < N; i++){
            String s = sc.next();
            
            double d = Math.abs(A - (T - Integer.parseInt(s) * 0.006));
            
            if(cnt > d){
               cnt = d;
               res = i+1;
            }
        }
        
        System.out.println(res);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        
        int N = Integer.parseInt(sc.next());
        
        int T = Integer.parseInt(sc.next());
        int A = Integer.parseInt(sc.next());
        
        int res = 0;
        double cnt = Integer.MAX_VALUE;
        
        for(int i = 0; i < N; i++){
            String s = sc.next();
            
            double d = Math.abs(A - (T - Integer.parseInt(s) * 0.006));
            
            if(cnt > d){
               cnt = d;
               res = i+1;
            }
        }
        
        System.out.println(res);
    }
}
