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