import java.util.*;
class Main {
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int T = scan.nextInt();
    int A = scan.nextInt();
    
    int arr[] = new int [N];
    
    for(int i = 0 ; i< N  ; i++){
      arr[i] = scan.nextInt();
    }
    
    ArrayList<Double> a = new ArrayList<>();
    
    for(int i = 0 ; i < N ; i++){
      a.add( Math.abs(A-(T - arr[i]*.006))) ; 
    }
    
    System.out.println(a.indexOf(Collections.min(a, null))+1);
    
  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int T = scan.nextInt();
    int A = scan.nextInt();
    
    int arr[] = new int [N];
    
    for(int i = 0 ; i< N  ; i++){
      arr[i] = scan.nextInt();
    }
    
    ArrayList<Double> a = new ArrayList<>();
    
    for(int i = 0 ; i < N ; i++){
      a.add( Math.abs(A-(T - arr[i]*.006))) ; 
    }
    
    System.out.println(a.indexOf(Collections.min(a, null))+1);
    
  }
} Main public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int T = scan.nextInt();
    int A = scan.nextInt();
    
    int arr[] = new int [N];
    
    for(int i = 0 ; i< N  ; i++){
      arr[i] = scan.nextInt();
    }
    
    ArrayList<Double> a = new ArrayList<>();
    
    for(int i = 0 ; i < N ; i++){
      a.add( Math.abs(A-(T - arr[i]*.006))) ; 
    }
    
    System.out.println(a.indexOf(Collections.min(a, null))+1);
    
  } main {
    
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int T = scan.nextInt();
    int A = scan.nextInt();
    
    int arr[] = new int [N];
    
    for(int i = 0 ; i< N  ; i++){
      arr[i] = scan.nextInt();
    }
    
    ArrayList<Double> a = new ArrayList<>();
    
    for(int i = 0 ; i < N ; i++){
      a.add( Math.abs(A-(T - arr[i]*.006))) ; 
    }
    
    System.out.println(a.indexOf(Collections.min(a, null))+1);
    
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int T = scan.nextInt(); T scan.nextInt() scan.nextInt scan int A = scan.nextInt(); A scan.nextInt() scan.nextInt scan int arr[] = new int [N]; arr new int [N] N for(int i = 0 ; i< N  ; i++){
      arr[i] = scan.nextInt();
    } int i = 0 ; int i = 0 ; i 0 i< N i N i++ i++ i {
      arr[i] = scan.nextInt();
    } {
      arr[i] = scan.nextInt();
    } arr[i] = scan.nextInt() arr[i] arr i scan.nextInt() scan.nextInt scan ArrayList<Double> a = new ArrayList<>(); a new ArrayList<>() for(int i = 0 ; i < N ; i++){
      a.add( Math.abs(A-(T - arr[i]*.006))) ; 
    } int i = 0 ; int i = 0 ; i 0 i < N i N i++ i++ i {
      a.add( Math.abs(A-(T - arr[i]*.006))) ; 
    } {
      a.add( Math.abs(A-(T - arr[i]*.006))) ; 
    } a.add( Math.abs(A-(T - arr[i]*.006))) a.add a Math.abs(A-(T - arr[i]*.006)) Math.abs Math A-(T - arr[i]*.006) A (T - arr[i]*.006) T arr[i]*.006 arr[i] arr i .006 System.out.println(a.indexOf(Collections.min(a, null))+1) System.out.println System.out System System.out a.indexOf(Collections.min(a, null))+1 a.indexOf(Collections.min(a, null)) a.indexOf a Collections.min(a, null) Collections.min Collections a null 1 String[] args args
import java.util.*;
class Main {
  public static void main(String[] args) {
    
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int T = scan.nextInt();
    int A = scan.nextInt();
    
    int arr[] = new int [N];
    
    for(int i = 0 ; i< N  ; i++){
      arr[i] = scan.nextInt();
    }
    
    ArrayList<Double> a = new ArrayList<>();
    
    for(int i = 0 ; i < N ; i++){
      a.add( Math.abs(A-(T - arr[i]*.006))) ; 
    }
    
    System.out.println(a.indexOf(Collections.min(a, null))+1);
    
  }
}
