import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int kouhosu = sc.nextInt();
    int kion = sc.nextInt();
    int kibou = sc.nextInt();
    double min = 100000;
    int index = 0;
    for(int i = 0; i < kouhosu; i++) {
      double dis = Math.abs(kibou - kion + sc.nextDouble() * 0.006);
      if(dis < min) {
        min = dis;
        index = i;
      }
    }
    System.out.println(index + 1);
  }

} import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int kouhosu = sc.nextInt();
    int kion = sc.nextInt();
    int kibou = sc.nextInt();
    double min = 100000;
    int index = 0;
    for(int i = 0; i < kouhosu; i++) {
      double dis = Math.abs(kibou - kion + sc.nextDouble() * 0.006);
      if(dis < min) {
        min = dis;
        index = i;
      }
    }
    System.out.println(index + 1);
  }

} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int kouhosu = sc.nextInt();
    int kion = sc.nextInt();
    int kibou = sc.nextInt();
    double min = 100000;
    int index = 0;
    for(int i = 0; i < kouhosu; i++) {
      double dis = Math.abs(kibou - kion + sc.nextDouble() * 0.006);
      if(dis < min) {
        min = dis;
        index = i;
      }
    }
    System.out.println(index + 1);
  } main {
    Scanner sc = new Scanner(System.in);
    int kouhosu = sc.nextInt();
    int kion = sc.nextInt();
    int kibou = sc.nextInt();
    double min = 100000;
    int index = 0;
    for(int i = 0; i < kouhosu; i++) {
      double dis = Math.abs(kibou - kion + sc.nextDouble() * 0.006);
      if(dis < min) {
        min = dis;
        index = i;
      }
    }
    System.out.println(index + 1);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int kouhosu = sc.nextInt(); kouhosu sc.nextInt() sc.nextInt sc int kion = sc.nextInt(); kion sc.nextInt() sc.nextInt sc int kibou = sc.nextInt(); kibou sc.nextInt() sc.nextInt sc double min = 100000; min 100000 int index = 0; index 0 for(int i = 0; i < kouhosu; i++) {
      double dis = Math.abs(kibou - kion + sc.nextDouble() * 0.006);
      if(dis < min) {
        min = dis;
        index = i;
      }
    } int i = 0; int i = 0; i 0 i < kouhosu i kouhosu i++ i++ i {
      double dis = Math.abs(kibou - kion + sc.nextDouble() * 0.006);
      if(dis < min) {
        min = dis;
        index = i;
      }
    } {
      double dis = Math.abs(kibou - kion + sc.nextDouble() * 0.006);
      if(dis < min) {
        min = dis;
        index = i;
      }
    } double dis = Math.abs(kibou - kion + sc.nextDouble() * 0.006); dis Math.abs(kibou - kion + sc.nextDouble() * 0.006) Math.abs Math kibou - kion + sc.nextDouble() * 0.006 kibou - kion kibou kion sc.nextDouble() * 0.006 sc.nextDouble() sc.nextDouble sc 0.006 if(dis < min) {
        min = dis;
        index = i;
      } dis < min dis min {
        min = dis;
        index = i;
      } min = dis min dis index = i index i System.out.println(index + 1) System.out.println System.out System System.out index + 1 index 1 String[] args args public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int kouhosu = sc.nextInt();
    int kion = sc.nextInt();
    int kibou = sc.nextInt();
    double min = 100000;
    int index = 0;
    for(int i = 0; i < kouhosu; i++) {
      double dis = Math.abs(kibou - kion + sc.nextDouble() * 0.006);
      if(dis < min) {
        min = dis;
        index = i;
      }
    }
    System.out.println(index + 1);
  }

} public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int kouhosu = sc.nextInt();
    int kion = sc.nextInt();
    int kibou = sc.nextInt();
    double min = 100000;
    int index = 0;
    for(int i = 0; i < kouhosu; i++) {
      double dis = Math.abs(kibou - kion + sc.nextDouble() * 0.006);
      if(dis < min) {
        min = dis;
        index = i;
      }
    }
    System.out.println(index + 1);
  }

} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int kouhosu = sc.nextInt();
    int kion = sc.nextInt();
    int kibou = sc.nextInt();
    double min = 100000;
    int index = 0;
    for(int i = 0; i < kouhosu; i++) {
      double dis = Math.abs(kibou - kion + sc.nextDouble() * 0.006);
      if(dis < min) {
        min = dis;
        index = i;
      }
    }
    System.out.println(index + 1);
  }

}
