import java.util.Scanner;
public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();  //候補地点の数
    int T = sc.nextInt();  //基礎気温 ある地点の気温はT-H[]*0.006
    int A = sc.nextInt();  //理想とする気温
    int[] H = new int[N];  //候補地点ごとの高度
    int number = 0; //理想の候補地点の番号
    double x = 1000.0; //理想の差の絶対値
    for(int i = 0; i < N; i++)
      H[i] = sc.nextInt();
    
    for(int i = 0; i < N; i++){
      double xi = A - (T - H[i] * 0.006);
        if(xi < 0) xi = -xi;
      if(xi < x){ x = xi; number = i + 1;}     
    }
    System.out.println(number);
  }  
} import java.util.Scanner; Scanner 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();  //基礎気温 ある地点の気温はT-H[]*0.006
    int A = sc.nextInt();  //理想とする気温
    int[] H = new int[N];  //候補地点ごとの高度
    int number = 0; //理想の候補地点の番号
    double x = 1000.0; //理想の差の絶対値
    for(int i = 0; i < N; i++)
      H[i] = sc.nextInt();
    
    for(int i = 0; i < N; i++){
      double xi = A - (T - H[i] * 0.006);
        if(xi < 0) xi = -xi;
      if(xi < x){ x = xi; number = i + 1;}     
    }
    System.out.println(number);
  }  
} Main public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();  //候補地点の数
    int T = sc.nextInt();  //基礎気温 ある地点の気温はT-H[]*0.006
    int A = sc.nextInt();  //理想とする気温
    int[] H = new int[N];  //候補地点ごとの高度
    int number = 0; //理想の候補地点の番号
    double x = 1000.0; //理想の差の絶対値
    for(int i = 0; i < N; i++)
      H[i] = sc.nextInt();
    
    for(int i = 0; i < N; i++){
      double xi = A - (T - H[i] * 0.006);
        if(xi < 0) xi = -xi;
      if(xi < x){ x = xi; number = i + 1;}     
    }
    System.out.println(number);
  } main {
	Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();  //候補地点の数
    int T = sc.nextInt();  //基礎気温 ある地点の気温はT-H[]*0.006
    int A = sc.nextInt();  //理想とする気温
    int[] H = new int[N];  //候補地点ごとの高度
    int number = 0; //理想の候補地点の番号
    double x = 1000.0; //理想の差の絶対値
    for(int i = 0; i < N; i++)
      H[i] = sc.nextInt();
    
    for(int i = 0; i < N; i++){
      double xi = A - (T - H[i] * 0.006);
        if(xi < 0) xi = -xi;
      if(xi < x){ x = xi; number = i + 1;}     
    }
    System.out.println(number);
  } 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[] H = new int[N]; H new int[N] N int number = 0; number 0 double x = 1000.0; x 1000.0 for(int i = 0; i < N; i++)
      H[i] = sc.nextInt(); int i = 0; int i = 0; i 0 i < N i N i++ i++ i H[i] = sc.nextInt(); H[i] = sc.nextInt() H[i] H i sc.nextInt() sc.nextInt sc for(int i = 0; i < N; i++){
      double xi = A - (T - H[i] * 0.006);
        if(xi < 0) xi = -xi;
      if(xi < x){ x = xi; number = i + 1;}     
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      double xi = A - (T - H[i] * 0.006);
        if(xi < 0) xi = -xi;
      if(xi < x){ x = xi; number = i + 1;}     
    } {
      double xi = A - (T - H[i] * 0.006);
        if(xi < 0) xi = -xi;
      if(xi < x){ x = xi; number = i + 1;}     
    } double xi = A - (T - H[i] * 0.006); xi A - (T - H[i] * 0.006) A (T - H[i] * 0.006) T H[i] * 0.006 H[i] H i 0.006 if(xi < 0) xi = -xi; xi < 0 xi 0 xi = -xi xi -xi xi if(xi < x){ x = xi; number = i + 1;} xi < x xi x { x = xi; number = i + 1;} x = xi x xi number = i + 1 number i + 1 i 1 System.out.println(number) System.out.println System.out System System.out number 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();  //基礎気温 ある地点の気温はT-H[]*0.006
    int A = sc.nextInt();  //理想とする気温
    int[] H = new int[N];  //候補地点ごとの高度
    int number = 0; //理想の候補地点の番号
    double x = 1000.0; //理想の差の絶対値
    for(int i = 0; i < N; i++)
      H[i] = sc.nextInt();
    
    for(int i = 0; i < N; i++){
      double xi = A - (T - H[i] * 0.006);
        if(xi < 0) xi = -xi;
      if(xi < x){ x = xi; number = i + 1;}     
    }
    System.out.println(number);
  }  
} public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();  //候補地点の数
    int T = sc.nextInt();  //基礎気温 ある地点の気温はT-H[]*0.006
    int A = sc.nextInt();  //理想とする気温
    int[] H = new int[N];  //候補地点ごとの高度
    int number = 0; //理想の候補地点の番号
    double x = 1000.0; //理想の差の絶対値
    for(int i = 0; i < N; i++)
      H[i] = sc.nextInt();
    
    for(int i = 0; i < N; i++){
      double xi = A - (T - H[i] * 0.006);
        if(xi < 0) xi = -xi;
      if(xi < x){ x = xi; number = i + 1;}     
    }
    System.out.println(number);
  }  
} Main
import java.util.Scanner;
public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();  //候補地点の数
    int T = sc.nextInt();  //基礎気温 ある地点の気温はT-H[]*0.006
    int A = sc.nextInt();  //理想とする気温
    int[] H = new int[N];  //候補地点ごとの高度
    int number = 0; //理想の候補地点の番号
    double x = 1000.0; //理想の差の絶対値
    for(int i = 0; i < N; i++)
      H[i] = sc.nextInt();
    
    for(int i = 0; i < N; i++){
      double xi = A - (T - H[i] * 0.006);
        if(xi < 0) xi = -xi;
      if(xi < x){ x = xi; number = i + 1;}     
    }
    System.out.println(number);
  }  
}
