import java.util.*;
import java.lang.*;

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[] H = new int[N];
    double[] temp = new double[N];

    for (int i = 0; i<N; i++){
      H[i] = sc.nextInt();
      temp[i] = 0;
    }

    double tp = 0;
    for (int i=0;i<N;i++){
      tp = T - H[i] * 0.006;
      temp[i] = Math.abs( tp - A);
    }

    int min_index = 0;
    double tmp = temp[0];
    for (int i = 0; i<N; i++){
      if (tmp > temp[i]) {
        tmp = temp[i];
        min_index = i;
      }
    }

    System.out.println(min_index+1);

  }
} import java.util.*; util.* java import java.lang.*; lang.* 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[] H = new int[N];
    double[] temp = new double[N];

    for (int i = 0; i<N; i++){
      H[i] = sc.nextInt();
      temp[i] = 0;
    }

    double tp = 0;
    for (int i=0;i<N;i++){
      tp = T - H[i] * 0.006;
      temp[i] = Math.abs( tp - A);
    }

    int min_index = 0;
    double tmp = temp[0];
    for (int i = 0; i<N; i++){
      if (tmp > temp[i]) {
        tmp = temp[i];
        min_index = i;
      }
    }

    System.out.println(min_index+1);

  }
} 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[] H = new int[N];
    double[] temp = new double[N];

    for (int i = 0; i<N; i++){
      H[i] = sc.nextInt();
      temp[i] = 0;
    }

    double tp = 0;
    for (int i=0;i<N;i++){
      tp = T - H[i] * 0.006;
      temp[i] = Math.abs( tp - A);
    }

    int min_index = 0;
    double tmp = temp[0];
    for (int i = 0; i<N; i++){
      if (tmp > temp[i]) {
        tmp = temp[i];
        min_index = i;
      }
    }

    System.out.println(min_index+1);

  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int T = sc.nextInt();
    int A = sc.nextInt();
    int[] H = new int[N];
    double[] temp = new double[N];

    for (int i = 0; i<N; i++){
      H[i] = sc.nextInt();
      temp[i] = 0;
    }

    double tp = 0;
    for (int i=0;i<N;i++){
      tp = T - H[i] * 0.006;
      temp[i] = Math.abs( tp - A);
    }

    int min_index = 0;
    double tmp = temp[0];
    for (int i = 0; i<N; i++){
      if (tmp > temp[i]) {
        tmp = temp[i];
        min_index = i;
      }
    }

    System.out.println(min_index+1);

  } 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 double[] temp = new double[N]; temp new double[N] N for (int i = 0; i<N; i++){
      H[i] = sc.nextInt();
      temp[i] = 0;
    } int i = 0; int i = 0; i 0 i<N i N i++ i++ i {
      H[i] = sc.nextInt();
      temp[i] = 0;
    } {
      H[i] = sc.nextInt();
      temp[i] = 0;
    } H[i] = sc.nextInt() H[i] H i sc.nextInt() sc.nextInt sc temp[i] = 0 temp[i] temp i 0 double tp = 0; tp 0 for (int i=0;i<N;i++){
      tp = T - H[i] * 0.006;
      temp[i] = Math.abs( tp - A);
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      tp = T - H[i] * 0.006;
      temp[i] = Math.abs( tp - A);
    } {
      tp = T - H[i] * 0.006;
      temp[i] = Math.abs( tp - A);
    } tp = T - H[i] * 0.006 tp T - H[i] * 0.006 T H[i] * 0.006 H[i] H i 0.006 temp[i] = Math.abs( tp - A) temp[i] temp i Math.abs( tp - A) Math.abs Math tp - A tp A int min_index = 0; min_index 0 double tmp = temp[0]; tmp temp[0] temp 0 for (int i = 0; i<N; i++){
      if (tmp > temp[i]) {
        tmp = temp[i];
        min_index = i;
      }
    } int i = 0; int i = 0; i 0 i<N i N i++ i++ i {
      if (tmp > temp[i]) {
        tmp = temp[i];
        min_index = i;
      }
    } {
      if (tmp > temp[i]) {
        tmp = temp[i];
        min_index = i;
      }
    } if (tmp > temp[i]) {
        tmp = temp[i];
        min_index = i;
      } tmp > temp[i] tmp temp[i] temp i {
        tmp = temp[i];
        min_index = i;
      } tmp = temp[i] tmp temp[i] temp i min_index = i min_index i System.out.println(min_index+1) System.out.println System.out System System.out min_index+1 min_index 1 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[] H = new int[N];
    double[] temp = new double[N];

    for (int i = 0; i<N; i++){
      H[i] = sc.nextInt();
      temp[i] = 0;
    }

    double tp = 0;
    for (int i=0;i<N;i++){
      tp = T - H[i] * 0.006;
      temp[i] = Math.abs( tp - A);
    }

    int min_index = 0;
    double tmp = temp[0];
    for (int i = 0; i<N; i++){
      if (tmp > temp[i]) {
        tmp = temp[i];
        min_index = i;
      }
    }

    System.out.println(min_index+1);

  }
} 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[] H = new int[N];
    double[] temp = new double[N];

    for (int i = 0; i<N; i++){
      H[i] = sc.nextInt();
      temp[i] = 0;
    }

    double tp = 0;
    for (int i=0;i<N;i++){
      tp = T - H[i] * 0.006;
      temp[i] = Math.abs( tp - A);
    }

    int min_index = 0;
    double tmp = temp[0];
    for (int i = 0; i<N; i++){
      if (tmp > temp[i]) {
        tmp = temp[i];
        min_index = i;
      }
    }

    System.out.println(min_index+1);

  }
} Main
import java.util.*;
import java.lang.*;

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[] H = new int[N];
    double[] temp = new double[N];

    for (int i = 0; i<N; i++){
      H[i] = sc.nextInt();
      temp[i] = 0;
    }

    double tp = 0;
    for (int i=0;i<N;i++){
      tp = T - H[i] * 0.006;
      temp[i] = Math.abs( tp - A);
    }

    int min_index = 0;
    double tmp = temp[0];
    for (int i = 0; i<N; i++){
      if (tmp > temp[i]) {
        tmp = temp[i];
        min_index = i;
      }
    }

    System.out.println(min_index+1);

  }
}
