import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   int T = sc.nextInt();
   int A = sc.nextInt();
   int[] Hi = new int[N];
   for(int i =0;i<N;i++) Hi[i] = sc.nextInt();
   
   int ans =1;
   double min = Math.abs((double)(T-A)-Hi[0]*0.006);
   double di ;
   for(int i =1;i<N;i++) 
   {
     di = T-(double)Hi[i]*0.006-A;
     if(min > Math.abs(di)) 
     {
       ans = i+1;
       min = Math.abs(di);
     }
   }
   System.out.println(ans);
 }
} import java.util.*; util.* java public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   int T = sc.nextInt();
   int A = sc.nextInt();
   int[] Hi = new int[N];
   for(int i =0;i<N;i++) Hi[i] = sc.nextInt();
   
   int ans =1;
   double min = Math.abs((double)(T-A)-Hi[0]*0.006);
   double di ;
   for(int i =1;i<N;i++) 
   {
     di = T-(double)Hi[i]*0.006-A;
     if(min > Math.abs(di)) 
     {
       ans = i+1;
       min = Math.abs(di);
     }
   }
   System.out.println(ans);
 }
} Main public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   int T = sc.nextInt();
   int A = sc.nextInt();
   int[] Hi = new int[N];
   for(int i =0;i<N;i++) Hi[i] = sc.nextInt();
   
   int ans =1;
   double min = Math.abs((double)(T-A)-Hi[0]*0.006);
   double di ;
   for(int i =1;i<N;i++) 
   {
     di = T-(double)Hi[i]*0.006-A;
     if(min > Math.abs(di)) 
     {
       ans = i+1;
       min = Math.abs(di);
     }
   }
   System.out.println(ans);
 } main {
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   int T = sc.nextInt();
   int A = sc.nextInt();
   int[] Hi = new int[N];
   for(int i =0;i<N;i++) Hi[i] = sc.nextInt();
   
   int ans =1;
   double min = Math.abs((double)(T-A)-Hi[0]*0.006);
   double di ;
   for(int i =1;i<N;i++) 
   {
     di = T-(double)Hi[i]*0.006-A;
     if(min > Math.abs(di)) 
     {
       ans = i+1;
       min = Math.abs(di);
     }
   }
   System.out.println(ans);
 } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int T = sc.nextInt(); T sc.nextInt() sc.nextInt sc int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int[] Hi = new int[N]; Hi new int[N] N for(int i =0;i<N;i++) Hi[i] = sc.nextInt(); int i =0; int i =0; i 0 i<N i N i++ i++ i Hi[i] = sc.nextInt(); Hi[i] = sc.nextInt() Hi[i] Hi i sc.nextInt() sc.nextInt sc int ans =1; ans 1 double min = Math.abs((double)(T-A)-Hi[0]*0.006); min Math.abs((double)(T-A)-Hi[0]*0.006) Math.abs Math (double)(T-A)-Hi[0]*0.006 (double)(T-A) T A Hi[0]*0.006 Hi[0] Hi 0 0.006 double di ; di for(int i =1;i<N;i++) 
   {
     di = T-(double)Hi[i]*0.006-A;
     if(min > Math.abs(di)) 
     {
       ans = i+1;
       min = Math.abs(di);
     }
   } int i =1; int i =1; i 1 i<N i N i++ i++ i {
     di = T-(double)Hi[i]*0.006-A;
     if(min > Math.abs(di)) 
     {
       ans = i+1;
       min = Math.abs(di);
     }
   } {
     di = T-(double)Hi[i]*0.006-A;
     if(min > Math.abs(di)) 
     {
       ans = i+1;
       min = Math.abs(di);
     }
   } di = T-(double)Hi[i]*0.006-A di T-(double)Hi[i]*0.006-A T-(double)Hi[i]*0.006-A T (double)Hi[i]*0.006 (double)Hi[i] Hi i 0.006 A if(min > Math.abs(di)) 
     {
       ans = i+1;
       min = Math.abs(di);
     } min > Math.abs(di) min Math.abs(di) Math.abs Math di {
       ans = i+1;
       min = Math.abs(di);
     } ans = i+1 ans i+1 i 1 min = Math.abs(di) min Math.abs(di) Math.abs Math di System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   int T = sc.nextInt();
   int A = sc.nextInt();
   int[] Hi = new int[N];
   for(int i =0;i<N;i++) Hi[i] = sc.nextInt();
   
   int ans =1;
   double min = Math.abs((double)(T-A)-Hi[0]*0.006);
   double di ;
   for(int i =1;i<N;i++) 
   {
     di = T-(double)Hi[i]*0.006-A;
     if(min > Math.abs(di)) 
     {
       ans = i+1;
       min = Math.abs(di);
     }
   }
   System.out.println(ans);
 }
} public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   int T = sc.nextInt();
   int A = sc.nextInt();
   int[] Hi = new int[N];
   for(int i =0;i<N;i++) Hi[i] = sc.nextInt();
   
   int ans =1;
   double min = Math.abs((double)(T-A)-Hi[0]*0.006);
   double di ;
   for(int i =1;i<N;i++) 
   {
     di = T-(double)Hi[i]*0.006-A;
     if(min > Math.abs(di)) 
     {
       ans = i+1;
       min = Math.abs(di);
     }
   }
   System.out.println(ans);
 }
} Main
import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   int T = sc.nextInt();
   int A = sc.nextInt();
   int[] Hi = new int[N];
   for(int i =0;i<N;i++) Hi[i] = sc.nextInt();
   
   int ans =1;
   double min = Math.abs((double)(T-A)-Hi[0]*0.006);
   double di ;
   for(int i =1;i<N;i++) 
   {
     di = T-(double)Hi[i]*0.006-A;
     if(min > Math.abs(di)) 
     {
       ans = i+1;
       min = Math.abs(di);
     }
   }
   System.out.println(ans);
 }
}