import java.io.*;
import java.util.*;

public class Main{
  public static void main(String[] args){
    try {
      Scanner sc = new Scanner(System.in);
      int n;
      double t, a;
      n=Integer.parseInt(sc.next());
      t=Integer.parseInt(sc.next());
      a=Integer.parseInt(sc.next());
      double[] h = new double[n];
      for(int i=0; i<n; i++){
        h[i]=t-Integer.parseInt(sc.next())*0.006;
      }

      int ans=0;
      for(int i=1; i<n; i++){
        if(Math.abs(a-h[i])<Math.abs(a-h[ans])){
          ans=i;
        }
      }

      System.out.println(ans+1);
      
      }catch (Exception e) {
      System.out.println("out");
    }
  }
} import java.io.*; io.* java import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    try {
      Scanner sc = new Scanner(System.in);
      int n;
      double t, a;
      n=Integer.parseInt(sc.next());
      t=Integer.parseInt(sc.next());
      a=Integer.parseInt(sc.next());
      double[] h = new double[n];
      for(int i=0; i<n; i++){
        h[i]=t-Integer.parseInt(sc.next())*0.006;
      }

      int ans=0;
      for(int i=1; i<n; i++){
        if(Math.abs(a-h[i])<Math.abs(a-h[ans])){
          ans=i;
        }
      }

      System.out.println(ans+1);
      
      }catch (Exception e) {
      System.out.println("out");
    }
  }
} Main public static void main(String[] args){
    try {
      Scanner sc = new Scanner(System.in);
      int n;
      double t, a;
      n=Integer.parseInt(sc.next());
      t=Integer.parseInt(sc.next());
      a=Integer.parseInt(sc.next());
      double[] h = new double[n];
      for(int i=0; i<n; i++){
        h[i]=t-Integer.parseInt(sc.next())*0.006;
      }

      int ans=0;
      for(int i=1; i<n; i++){
        if(Math.abs(a-h[i])<Math.abs(a-h[ans])){
          ans=i;
        }
      }

      System.out.println(ans+1);
      
      }catch (Exception e) {
      System.out.println("out");
    }
  } main {
    try {
      Scanner sc = new Scanner(System.in);
      int n;
      double t, a;
      n=Integer.parseInt(sc.next());
      t=Integer.parseInt(sc.next());
      a=Integer.parseInt(sc.next());
      double[] h = new double[n];
      for(int i=0; i<n; i++){
        h[i]=t-Integer.parseInt(sc.next())*0.006;
      }

      int ans=0;
      for(int i=1; i<n; i++){
        if(Math.abs(a-h[i])<Math.abs(a-h[ans])){
          ans=i;
        }
      }

      System.out.println(ans+1);
      
      }catch (Exception e) {
      System.out.println("out");
    }
  } try {
      Scanner sc = new Scanner(System.in);
      int n;
      double t, a;
      n=Integer.parseInt(sc.next());
      t=Integer.parseInt(sc.next());
      a=Integer.parseInt(sc.next());
      double[] h = new double[n];
      for(int i=0; i<n; i++){
        h[i]=t-Integer.parseInt(sc.next())*0.006;
      }

      int ans=0;
      for(int i=1; i<n; i++){
        if(Math.abs(a-h[i])<Math.abs(a-h[ans])){
          ans=i;
        }
      }

      System.out.println(ans+1);
      
      }catch (Exception e) {
      System.out.println("out");
    } catch (Exception e) {
      System.out.println("out");
    } Exception e {
      System.out.println("out");
    } System.out.println("out") System.out.println System.out System System.out "out" {
      Scanner sc = new Scanner(System.in);
      int n;
      double t, a;
      n=Integer.parseInt(sc.next());
      t=Integer.parseInt(sc.next());
      a=Integer.parseInt(sc.next());
      double[] h = new double[n];
      for(int i=0; i<n; i++){
        h[i]=t-Integer.parseInt(sc.next())*0.006;
      }

      int ans=0;
      for(int i=1; i<n; i++){
        if(Math.abs(a-h[i])<Math.abs(a-h[ans])){
          ans=i;
        }
      }

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

      int ans=0;
      for(int i=1; i<n; i++){
        if(Math.abs(a-h[i])<Math.abs(a-h[ans])){
          ans=i;
        }
      }

      System.out.println(ans+1);
      
      }catch (Exception e) {
      System.out.println("out");
    }
  }
} public class Main{
  public static void main(String[] args){
    try {
      Scanner sc = new Scanner(System.in);
      int n;
      double t, a;
      n=Integer.parseInt(sc.next());
      t=Integer.parseInt(sc.next());
      a=Integer.parseInt(sc.next());
      double[] h = new double[n];
      for(int i=0; i<n; i++){
        h[i]=t-Integer.parseInt(sc.next())*0.006;
      }

      int ans=0;
      for(int i=1; i<n; i++){
        if(Math.abs(a-h[i])<Math.abs(a-h[ans])){
          ans=i;
        }
      }

      System.out.println(ans+1);
      
      }catch (Exception e) {
      System.out.println("out");
    }
  }
} Main
import java.io.*;
import java.util.*;

public class Main{
  public static void main(String[] args){
    try {
      Scanner sc = new Scanner(System.in);
      int n;
      double t, a;
      n=Integer.parseInt(sc.next());
      t=Integer.parseInt(sc.next());
      a=Integer.parseInt(sc.next());
      double[] h = new double[n];
      for(int i=0; i<n; i++){
        h[i]=t-Integer.parseInt(sc.next())*0.006;
      }

      int ans=0;
      for(int i=1; i<n; i++){
        if(Math.abs(a-h[i])<Math.abs(a-h[ans])){
          ans=i;
        }
      }

      System.out.println(ans+1);
      
      }catch (Exception e) {
      System.out.println("out");
    }
  }
}
