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();
    int a = sc.nextInt();
    Double sum_height = 0d;
    Double tt = 0d;
    Double sub = Double.MAX_VALUE;
    int index = 0;

    for(int i=0; i<n; i++){
      tt = t - sc.nextInt() * 0.006;
      if(sub>Math.abs(tt-a)){
        sub = Math.abs(tt-a);
        index = i+1;
      }
    }
    System.out.println(index);


  }
} 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();
    int a = sc.nextInt();
    Double sum_height = 0d;
    Double tt = 0d;
    Double sub = Double.MAX_VALUE;
    int index = 0;

    for(int i=0; i<n; i++){
      tt = t - sc.nextInt() * 0.006;
      if(sub>Math.abs(tt-a)){
        sub = Math.abs(tt-a);
        index = i+1;
      }
    }
    System.out.println(index);


  }
} 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();
    Double sum_height = 0d;
    Double tt = 0d;
    Double sub = Double.MAX_VALUE;
    int index = 0;

    for(int i=0; i<n; i++){
      tt = t - sc.nextInt() * 0.006;
      if(sub>Math.abs(tt-a)){
        sub = Math.abs(tt-a);
        index = i+1;
      }
    }
    System.out.println(index);


  } main {
    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    int t = sc.nextInt();
    int a = sc.nextInt();
    Double sum_height = 0d;
    Double tt = 0d;
    Double sub = Double.MAX_VALUE;
    int index = 0;

    for(int i=0; i<n; i++){
      tt = t - sc.nextInt() * 0.006;
      if(sub>Math.abs(tt-a)){
        sub = Math.abs(tt-a);
        index = i+1;
      }
    }
    System.out.println(index);


  } 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 Double sum_height = 0d; sum_height 0d Double tt = 0d; tt 0d Double sub = Double.MAX_VALUE; sub Double.MAX_VALUE Double Double.MAX_VALUE int index = 0; index 0 for(int i=0; i<n; i++){
      tt = t - sc.nextInt() * 0.006;
      if(sub>Math.abs(tt-a)){
        sub = Math.abs(tt-a);
        index = i+1;
      }
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      tt = t - sc.nextInt() * 0.006;
      if(sub>Math.abs(tt-a)){
        sub = Math.abs(tt-a);
        index = i+1;
      }
    } {
      tt = t - sc.nextInt() * 0.006;
      if(sub>Math.abs(tt-a)){
        sub = Math.abs(tt-a);
        index = i+1;
      }
    } tt = t - sc.nextInt() * 0.006 tt t - sc.nextInt() * 0.006 t sc.nextInt() * 0.006 sc.nextInt() sc.nextInt sc 0.006 if(sub>Math.abs(tt-a)){
        sub = Math.abs(tt-a);
        index = i+1;
      } sub>Math.abs(tt-a) sub Math.abs(tt-a) Math.abs Math tt-a tt a {
        sub = Math.abs(tt-a);
        index = i+1;
      } sub = Math.abs(tt-a) sub Math.abs(tt-a) Math.abs Math tt-a tt a index = i+1 index i+1 i 1 System.out.println(index) System.out.println System.out System System.out index 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();
    Double sum_height = 0d;
    Double tt = 0d;
    Double sub = Double.MAX_VALUE;
    int index = 0;

    for(int i=0; i<n; i++){
      tt = t - sc.nextInt() * 0.006;
      if(sub>Math.abs(tt-a)){
        sub = Math.abs(tt-a);
        index = i+1;
      }
    }
    System.out.println(index);


  }
} 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();
    Double sum_height = 0d;
    Double tt = 0d;
    Double sub = Double.MAX_VALUE;
    int index = 0;

    for(int i=0; i<n; i++){
      tt = t - sc.nextInt() * 0.006;
      if(sub>Math.abs(tt-a)){
        sub = Math.abs(tt-a);
        index = i+1;
      }
    }
    System.out.println(index);


  }
} 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();
    int a = sc.nextInt();
    Double sum_height = 0d;
    Double tt = 0d;
    Double sub = Double.MAX_VALUE;
    int index = 0;

    for(int i=0; i<n; i++){
      tt = t - sc.nextInt() * 0.006;
      if(sub>Math.abs(tt-a)){
        sub = Math.abs(tt-a);
        index = i+1;
      }
    }
    System.out.println(index);


  }
}