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

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

  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    ArrayList<Integer> ar = new ArrayList<Integer>();
    int N = sc.nextInt();
    int T = sc.nextInt();
    int A = sc.nextInt();
    int H[] = new int[N];
    for(int i=0;i<N;i++){
      H[i] = sc.nextInt();
    }
    if(N == 1){
      System.out.println(1);
    }else{
      double min = Math.abs((T - H[0]*0.006) - A);
      for(int i=1;i<N;i++){
        if(Math.abs((T - H[i]*0.006) - A)<min){
          min = Math.abs((T - H[i]*0.006) - A);
          ar.add(i);
        }
      }
    }
    if(ar.size() == 0){
      System.out.println(1);
    }else{
      System.out.println(ar.get(ar.size()-1)+1);
    }

  } main {
    Scanner sc = new Scanner(System.in);
    ArrayList<Integer> ar = new ArrayList<Integer>();
    int N = sc.nextInt();
    int T = sc.nextInt();
    int A = sc.nextInt();
    int H[] = new int[N];
    for(int i=0;i<N;i++){
      H[i] = sc.nextInt();
    }
    if(N == 1){
      System.out.println(1);
    }else{
      double min = Math.abs((T - H[0]*0.006) - A);
      for(int i=1;i<N;i++){
        if(Math.abs((T - H[i]*0.006) - A)<min){
          min = Math.abs((T - H[i]*0.006) - A);
          ar.add(i);
        }
      }
    }
    if(ar.size() == 0){
      System.out.println(1);
    }else{
      System.out.println(ar.get(ar.size()-1)+1);
    }

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<Integer> ar = new ArrayList<Integer>(); ar new ArrayList<Integer>() 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 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] = sc.nextInt() H[i] H i sc.nextInt() sc.nextInt sc if(N == 1){
      System.out.println(1);
    }else{
      double min = Math.abs((T - H[0]*0.006) - A);
      for(int i=1;i<N;i++){
        if(Math.abs((T - H[i]*0.006) - A)<min){
          min = Math.abs((T - H[i]*0.006) - A);
          ar.add(i);
        }
      }
    } N == 1 N 1 {
      System.out.println(1);
    } System.out.println(1) System.out.println System.out System System.out 1 {
      double min = Math.abs((T - H[0]*0.006) - A);
      for(int i=1;i<N;i++){
        if(Math.abs((T - H[i]*0.006) - A)<min){
          min = Math.abs((T - H[i]*0.006) - A);
          ar.add(i);
        }
      }
    } double min = Math.abs((T - H[0]*0.006) - A); min Math.abs((T - H[0]*0.006) - A) Math.abs Math (T - H[0]*0.006) - A (T - H[0]*0.006) T H[0]*0.006 H[0] H 0 0.006 A for(int i=1;i<N;i++){
        if(Math.abs((T - H[i]*0.006) - A)<min){
          min = Math.abs((T - H[i]*0.006) - A);
          ar.add(i);
        }
      } int i=1; int i=1; i 1 i<N i N i++ i++ i {
        if(Math.abs((T - H[i]*0.006) - A)<min){
          min = Math.abs((T - H[i]*0.006) - A);
          ar.add(i);
        }
      } {
        if(Math.abs((T - H[i]*0.006) - A)<min){
          min = Math.abs((T - H[i]*0.006) - A);
          ar.add(i);
        }
      } if(Math.abs((T - H[i]*0.006) - A)<min){
          min = Math.abs((T - H[i]*0.006) - A);
          ar.add(i);
        } Math.abs((T - H[i]*0.006) - A)<min Math.abs((T - H[i]*0.006) - A) Math.abs Math (T - H[i]*0.006) - A (T - H[i]*0.006) T H[i]*0.006 H[i] H i 0.006 A min {
          min = Math.abs((T - H[i]*0.006) - A);
          ar.add(i);
        } min = Math.abs((T - H[i]*0.006) - A) min Math.abs((T - H[i]*0.006) - A) Math.abs Math (T - H[i]*0.006) - A (T - H[i]*0.006) T H[i]*0.006 H[i] H i 0.006 A ar.add(i) ar.add ar i if(ar.size() == 0){
      System.out.println(1);
    }else{
      System.out.println(ar.get(ar.size()-1)+1);
    } ar.size() == 0 ar.size() ar.size ar 0 {
      System.out.println(1);
    } System.out.println(1) System.out.println System.out System System.out 1 {
      System.out.println(ar.get(ar.size()-1)+1);
    } System.out.println(ar.get(ar.size()-1)+1) System.out.println System.out System System.out ar.get(ar.size()-1)+1 ar.get(ar.size()-1) ar.get ar ar.size()-1 ar.size() ar.size ar 1 1 String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    ArrayList<Integer> ar = new ArrayList<Integer>();
    int N = sc.nextInt();
    int T = sc.nextInt();
    int A = sc.nextInt();
    int H[] = new int[N];
    for(int i=0;i<N;i++){
      H[i] = sc.nextInt();
    }
    if(N == 1){
      System.out.println(1);
    }else{
      double min = Math.abs((T - H[0]*0.006) - A);
      for(int i=1;i<N;i++){
        if(Math.abs((T - H[i]*0.006) - A)<min){
          min = Math.abs((T - H[i]*0.006) - A);
          ar.add(i);
        }
      }
    }
    if(ar.size() == 0){
      System.out.println(1);
    }else{
      System.out.println(ar.get(ar.size()-1)+1);
    }

  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    ArrayList<Integer> ar = new ArrayList<Integer>();
    int N = sc.nextInt();
    int T = sc.nextInt();
    int A = sc.nextInt();
    int H[] = new int[N];
    for(int i=0;i<N;i++){
      H[i] = sc.nextInt();
    }
    if(N == 1){
      System.out.println(1);
    }else{
      double min = Math.abs((T - H[0]*0.006) - A);
      for(int i=1;i<N;i++){
        if(Math.abs((T - H[i]*0.006) - A)<min){
          min = Math.abs((T - H[i]*0.006) - A);
          ar.add(i);
        }
      }
    }
    if(ar.size() == 0){
      System.out.println(1);
    }else{
      System.out.println(ar.get(ar.size()-1)+1);
    }

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

  }
}
