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 ans = 100001.0;
    double bef;
    int answer = 0;
    for(int i=0; i<n; i++){
      bef = ans;
      ans = Math.min( ans,Math.abs( a-(t-sc.nextInt()*0.006) ) );
      if(bef != ans) answer = i+1;
    }
    System.out.println(answer);
  }
} 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 ans = 100001.0;
    double bef;
    int answer = 0;
    for(int i=0; i<n; i++){
      bef = ans;
      ans = Math.min( ans,Math.abs( a-(t-sc.nextInt()*0.006) ) );
      if(bef != ans) answer = i+1;
    }
    System.out.println(answer);
  }
} 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 ans = 100001.0;
    double bef;
    int answer = 0;
    for(int i=0; i<n; i++){
      bef = ans;
      ans = Math.min( ans,Math.abs( a-(t-sc.nextInt()*0.006) ) );
      if(bef != ans) answer = i+1;
    }
    System.out.println(answer);
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int t = sc.nextInt();
    int a = sc.nextInt();
    double ans = 100001.0;
    double bef;
    int answer = 0;
    for(int i=0; i<n; i++){
      bef = ans;
      ans = Math.min( ans,Math.abs( a-(t-sc.nextInt()*0.006) ) );
      if(bef != ans) answer = i+1;
    }
    System.out.println(answer);
  } 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 ans = 100001.0; ans 100001.0 double bef; bef int answer = 0; answer 0 for(int i=0; i<n; i++){
      bef = ans;
      ans = Math.min( ans,Math.abs( a-(t-sc.nextInt()*0.006) ) );
      if(bef != ans) answer = i+1;
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      bef = ans;
      ans = Math.min( ans,Math.abs( a-(t-sc.nextInt()*0.006) ) );
      if(bef != ans) answer = i+1;
    } {
      bef = ans;
      ans = Math.min( ans,Math.abs( a-(t-sc.nextInt()*0.006) ) );
      if(bef != ans) answer = i+1;
    } bef = ans bef ans ans = Math.min( ans,Math.abs( a-(t-sc.nextInt()*0.006) ) ) ans Math.min( ans,Math.abs( a-(t-sc.nextInt()*0.006) ) ) Math.min Math ans 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(bef != ans) answer = i+1; bef != ans bef ans answer = i+1 answer i+1 i 1 System.out.println(answer) System.out.println System.out System System.out answer 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 ans = 100001.0;
    double bef;
    int answer = 0;
    for(int i=0; i<n; i++){
      bef = ans;
      ans = Math.min( ans,Math.abs( a-(t-sc.nextInt()*0.006) ) );
      if(bef != ans) answer = i+1;
    }
    System.out.println(answer);
  }
} 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 ans = 100001.0;
    double bef;
    int answer = 0;
    for(int i=0; i<n; i++){
      bef = ans;
      ans = Math.min( ans,Math.abs( a-(t-sc.nextInt()*0.006) ) );
      if(bef != ans) answer = i+1;
    }
    System.out.println(answer);
  }
} 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 ans = 100001.0;
    double bef;
    int answer = 0;
    for(int i=0; i<n; i++){
      bef = ans;
      ans = Math.min( ans,Math.abs( a-(t-sc.nextInt()*0.006) ) );
      if(bef != ans) answer = i+1;
    }
    System.out.println(answer);
  }
}