import java.util.Scanner;
import java.util.Collections;
import java.util.ArrayList;
import java.util.Arrays;

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 cnt = 0;
    double min = Double.MAX_VALUE;
    for (int i = 0; i < N; i++) {
      double B = Math.abs(A - (T - sc.nextInt() * 0.006));
      if (B < min) {
        min = B;
        cnt = i + 1;
      }
    }
    System.out.println(cnt);
  }
} import java.util.Scanner; Scanner java.util import java.util.Collections; Collections java.util import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays 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();
    int cnt = 0;
    double min = Double.MAX_VALUE;
    for (int i = 0; i < N; i++) {
      double B = Math.abs(A - (T - sc.nextInt() * 0.006));
      if (B < min) {
        min = B;
        cnt = i + 1;
      }
    }
    System.out.println(cnt);
  }
} 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 cnt = 0;
    double min = Double.MAX_VALUE;
    for (int i = 0; i < N; i++) {
      double B = Math.abs(A - (T - sc.nextInt() * 0.006));
      if (B < min) {
        min = B;
        cnt = i + 1;
      }
    }
    System.out.println(cnt);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int T = sc.nextInt();
    int A = sc.nextInt();
    int cnt = 0;
    double min = Double.MAX_VALUE;
    for (int i = 0; i < N; i++) {
      double B = Math.abs(A - (T - sc.nextInt() * 0.006));
      if (B < min) {
        min = B;
        cnt = i + 1;
      }
    }
    System.out.println(cnt);
  } 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 cnt = 0; cnt 0 double min = Double.MAX_VALUE; min Double.MAX_VALUE Double Double.MAX_VALUE for (int i = 0; i < N; i++) {
      double B = Math.abs(A - (T - sc.nextInt() * 0.006));
      if (B < min) {
        min = B;
        cnt = i + 1;
      }
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      double B = Math.abs(A - (T - sc.nextInt() * 0.006));
      if (B < min) {
        min = B;
        cnt = i + 1;
      }
    } {
      double B = Math.abs(A - (T - sc.nextInt() * 0.006));
      if (B < min) {
        min = B;
        cnt = i + 1;
      }
    } double B = Math.abs(A - (T - sc.nextInt() * 0.006)); B Math.abs(A - (T - sc.nextInt() * 0.006)) Math.abs Math A - (T - sc.nextInt() * 0.006) A (T - sc.nextInt() * 0.006) T sc.nextInt() * 0.006 sc.nextInt() sc.nextInt sc 0.006 if (B < min) {
        min = B;
        cnt = i + 1;
      } B < min B min {
        min = B;
        cnt = i + 1;
      } min = B min B cnt = i + 1 cnt i + 1 i 1 System.out.println(cnt) System.out.println System.out System System.out cnt 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 cnt = 0;
    double min = Double.MAX_VALUE;
    for (int i = 0; i < N; i++) {
      double B = Math.abs(A - (T - sc.nextInt() * 0.006));
      if (B < min) {
        min = B;
        cnt = i + 1;
      }
    }
    System.out.println(cnt);
  }
} 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 cnt = 0;
    double min = Double.MAX_VALUE;
    for (int i = 0; i < N; i++) {
      double B = Math.abs(A - (T - sc.nextInt() * 0.006));
      if (B < min) {
        min = B;
        cnt = i + 1;
      }
    }
    System.out.println(cnt);
  }
} Main
import java.util.Scanner;
import java.util.Collections;
import java.util.ArrayList;
import java.util.Arrays;

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 cnt = 0;
    double min = Double.MAX_VALUE;
    for (int i = 0; i < N; i++) {
      double B = Math.abs(A - (T - sc.nextInt() * 0.006));
      if (B < min) {
        min = B;
        cnt = i + 1;
      }
    }
    System.out.println(cnt);
  }
}
