import 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[] data = new double[n];

    for (int i = 0; i < n; i++) {
      data[i] = sc.nextInt();
      data[i] = Math.abs(a-(t-data[i]*0.006));
    }

    double min = data[0];
    int m = 0;

    for (int i = 1; i < n; i++) {
      if (min > data[i]) {
        min = data[i];
        m = i;
      }
    }

    System.out.println(m+1);

  }

} import java.util.*; util.* java 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[] data = new double[n];

    for (int i = 0; i < n; i++) {
      data[i] = sc.nextInt();
      data[i] = Math.abs(a-(t-data[i]*0.006));
    }

    double min = data[0];
    int m = 0;

    for (int i = 1; i < n; i++) {
      if (min > data[i]) {
        min = data[i];
        m = i;
      }
    }

    System.out.println(m+1);

  }

} 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[] data = new double[n];

    for (int i = 0; i < n; i++) {
      data[i] = sc.nextInt();
      data[i] = Math.abs(a-(t-data[i]*0.006));
    }

    double min = data[0];
    int m = 0;

    for (int i = 1; i < n; i++) {
      if (min > data[i]) {
        min = data[i];
        m = i;
      }
    }

    System.out.println(m+1);

  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int t = sc.nextInt();
    int a = sc.nextInt();
    double[] data = new double[n];

    for (int i = 0; i < n; i++) {
      data[i] = sc.nextInt();
      data[i] = Math.abs(a-(t-data[i]*0.006));
    }

    double min = data[0];
    int m = 0;

    for (int i = 1; i < n; i++) {
      if (min > data[i]) {
        min = data[i];
        m = i;
      }
    }

    System.out.println(m+1);

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

    for (int i = 0; i < n; i++) {
      data[i] = sc.nextInt();
      data[i] = Math.abs(a-(t-data[i]*0.006));
    }

    double min = data[0];
    int m = 0;

    for (int i = 1; i < n; i++) {
      if (min > data[i]) {
        min = data[i];
        m = i;
      }
    }

    System.out.println(m+1);

  }

} 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[] data = new double[n];

    for (int i = 0; i < n; i++) {
      data[i] = sc.nextInt();
      data[i] = Math.abs(a-(t-data[i]*0.006));
    }

    double min = data[0];
    int m = 0;

    for (int i = 1; i < n; i++) {
      if (min > data[i]) {
        min = data[i];
        m = i;
      }
    }

    System.out.println(m+1);

  }

} Main
import 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[] data = new double[n];

    for (int i = 0; i < n; i++) {
      data[i] = sc.nextInt();
      data[i] = Math.abs(a-(t-data[i]*0.006));
    }

    double min = data[0];
    int m = 0;

    for (int i = 1; i < n; i++) {
      if (min > data[i]) {
        min = data[i];
        m = i;
      }
    }

    System.out.println(m+1);

  }

}
