import java.util.*;

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 abs = 100000;
    int result = 1;
    for (int i = 0; i < n; i++) {
      h[i] = sc.nextInt();
      double temperature = t - h[i] * 0.006;
      if (Math.abs(a - temperature) < abs) {
        abs = Math.abs(a - temperature);
        result = i + 1;
      }
    }
    System.out.println(result);
  }
} import java.util.*; util.* java 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 abs = 100000;
    int result = 1;
    for (int i = 0; i < n; i++) {
      h[i] = sc.nextInt();
      double temperature = t - h[i] * 0.006;
      if (Math.abs(a - temperature) < abs) {
        abs = Math.abs(a - temperature);
        result = i + 1;
      }
    }
    System.out.println(result);
  }
} 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 abs = 100000;
    int result = 1;
    for (int i = 0; i < n; i++) {
      h[i] = sc.nextInt();
      double temperature = t - h[i] * 0.006;
      if (Math.abs(a - temperature) < abs) {
        abs = Math.abs(a - temperature);
        result = i + 1;
      }
    }
    System.out.println(result);
  } 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 abs = 100000;
    int result = 1;
    for (int i = 0; i < n; i++) {
      h[i] = sc.nextInt();
      double temperature = t - h[i] * 0.006;
      if (Math.abs(a - temperature) < abs) {
        abs = Math.abs(a - temperature);
        result = i + 1;
      }
    }
    System.out.println(result);
  } 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 abs = 100000; abs 100000 int result = 1; result 1 for (int i = 0; i < n; i++) {
      h[i] = sc.nextInt();
      double temperature = t - h[i] * 0.006;
      if (Math.abs(a - temperature) < abs) {
        abs = Math.abs(a - temperature);
        result = i + 1;
      }
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      h[i] = sc.nextInt();
      double temperature = t - h[i] * 0.006;
      if (Math.abs(a - temperature) < abs) {
        abs = Math.abs(a - temperature);
        result = i + 1;
      }
    } {
      h[i] = sc.nextInt();
      double temperature = t - h[i] * 0.006;
      if (Math.abs(a - temperature) < abs) {
        abs = Math.abs(a - temperature);
        result = i + 1;
      }
    } h[i] = sc.nextInt() h[i] h i sc.nextInt() sc.nextInt sc double temperature = t - h[i] * 0.006; temperature t - h[i] * 0.006 t h[i] * 0.006 h[i] h i 0.006 if (Math.abs(a - temperature) < abs) {
        abs = Math.abs(a - temperature);
        result = i + 1;
      } Math.abs(a - temperature) < abs Math.abs(a - temperature) Math.abs Math a - temperature a temperature abs {
        abs = Math.abs(a - temperature);
        result = i + 1;
      } abs = Math.abs(a - temperature) abs Math.abs(a - temperature) Math.abs Math a - temperature a temperature result = i + 1 result i + 1 i 1 System.out.println(result) System.out.println System.out System System.out result String[] args args
import java.util.*;

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 abs = 100000;
    int result = 1;
    for (int i = 0; i < n; i++) {
      h[i] = sc.nextInt();
      double temperature = t - h[i] * 0.006;
      if (Math.abs(a - temperature) < abs) {
        abs = Math.abs(a - temperature);
        result = i + 1;
      }
    }
    System.out.println(result);
  }
}