import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.nextLine());
    double t = Double.parseDouble(sc.next());
    double a = Double.parseDouble(sc.next());
    sc.nextLine();
    int ans = 0;
    String h = sc.nextLine();
    String[] ha = h.split(" ");
    double[] hd = new double[n];
    for (int i = 0; i < n; i++) {
      hd[i] = t - Double.parseDouble(ha[i]) * 0.006;
      if (Math.abs(a - hd[i]) < Math.abs(a - hd[ans]))
        ans = i;  
    }
    System.out.println(ans+1);
  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.nextLine());
    double t = Double.parseDouble(sc.next());
    double a = Double.parseDouble(sc.next());
    sc.nextLine();
    int ans = 0;
    String h = sc.nextLine();
    String[] ha = h.split(" ");
    double[] hd = new double[n];
    for (int i = 0; i < n; i++) {
      hd[i] = t - Double.parseDouble(ha[i]) * 0.006;
      if (Math.abs(a - hd[i]) < Math.abs(a - hd[ans]))
        ans = i;  
    }
    System.out.println(ans+1);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.nextLine());
    double t = Double.parseDouble(sc.next());
    double a = Double.parseDouble(sc.next());
    sc.nextLine();
    int ans = 0;
    String h = sc.nextLine();
    String[] ha = h.split(" ");
    double[] hd = new double[n];
    for (int i = 0; i < n; i++) {
      hd[i] = t - Double.parseDouble(ha[i]) * 0.006;
      if (Math.abs(a - hd[i]) < Math.abs(a - hd[ans]))
        ans = i;  
    }
    System.out.println(ans+1);
  } main {
    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.nextLine());
    double t = Double.parseDouble(sc.next());
    double a = Double.parseDouble(sc.next());
    sc.nextLine();
    int ans = 0;
    String h = sc.nextLine();
    String[] ha = h.split(" ");
    double[] hd = new double[n];
    for (int i = 0; i < n; i++) {
      hd[i] = t - Double.parseDouble(ha[i]) * 0.006;
      if (Math.abs(a - hd[i]) < Math.abs(a - hd[ans]))
        ans = i;  
    }
    System.out.println(ans+1);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.nextLine()); n Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc double t = Double.parseDouble(sc.next()); t Double.parseDouble(sc.next()) Double.parseDouble Double sc.next() sc.next sc double a = Double.parseDouble(sc.next()); a Double.parseDouble(sc.next()) Double.parseDouble Double sc.next() sc.next sc sc.nextLine() sc.nextLine sc int ans = 0; ans 0 String h = sc.nextLine(); h sc.nextLine() sc.nextLine sc String[] ha = h.split(" "); ha h.split(" ") h.split h " " double[] hd = new double[n]; hd new double[n] n for (int i = 0; i < n; i++) {
      hd[i] = t - Double.parseDouble(ha[i]) * 0.006;
      if (Math.abs(a - hd[i]) < Math.abs(a - hd[ans]))
        ans = i;  
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      hd[i] = t - Double.parseDouble(ha[i]) * 0.006;
      if (Math.abs(a - hd[i]) < Math.abs(a - hd[ans]))
        ans = i;  
    } {
      hd[i] = t - Double.parseDouble(ha[i]) * 0.006;
      if (Math.abs(a - hd[i]) < Math.abs(a - hd[ans]))
        ans = i;  
    } hd[i] = t - Double.parseDouble(ha[i]) * 0.006 hd[i] hd i t - Double.parseDouble(ha[i]) * 0.006 t Double.parseDouble(ha[i]) * 0.006 Double.parseDouble(ha[i]) Double.parseDouble Double ha[i] ha i 0.006 if (Math.abs(a - hd[i]) < Math.abs(a - hd[ans]))
        ans = i; Math.abs(a - hd[i]) < Math.abs(a - hd[ans]) Math.abs(a - hd[i]) Math.abs Math a - hd[i] a hd[i] hd i Math.abs(a - hd[ans]) Math.abs Math a - hd[ans] a hd[ans] hd ans ans = i ans i System.out.println(ans+1) System.out.println System.out System System.out ans+1 ans 1 String[] args args
import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = Integer.parseInt(sc.nextLine());
    double t = Double.parseDouble(sc.next());
    double a = Double.parseDouble(sc.next());
    sc.nextLine();
    int ans = 0;
    String h = sc.nextLine();
    String[] ha = h.split(" ");
    double[] hd = new double[n];
    for (int i = 0; i < n; i++) {
      hd[i] = t - Double.parseDouble(ha[i]) * 0.006;
      if (Math.abs(a - hd[i]) < Math.abs(a - hd[ans]))
        ans = i;  
    }
    System.out.println(ans+1);
  }
}