import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    
    String[] str = in.readLine().split(" ");
    int t = Integer.parseInt(str[0]);
    int a = Integer.parseInt(str[1]);

    int[] h = new int[n];
    str = in.readLine().split(" ");
    double diffMin = 10000000;
    int diffMinPoint = 0;
    for(int i=0; i<n; i++) {
      h[i] = Integer.parseInt(str[i]);
      double point = t-h[i]*0.006;
      if(diffMin > Math.abs(point-a)) {
        diffMin = Math.abs(point-a);
        diffMinPoint = i+1;
      }
    }
    
    System.out.println(diffMinPoint);
  }
}
     import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    
    String[] str = in.readLine().split(" ");
    int t = Integer.parseInt(str[0]);
    int a = Integer.parseInt(str[1]);

    int[] h = new int[n];
    str = in.readLine().split(" ");
    double diffMin = 10000000;
    int diffMinPoint = 0;
    for(int i=0; i<n; i++) {
      h[i] = Integer.parseInt(str[i]);
      double point = t-h[i]*0.006;
      if(diffMin > Math.abs(point-a)) {
        diffMin = Math.abs(point-a);
        diffMinPoint = i+1;
      }
    }
    
    System.out.println(diffMinPoint);
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    
    String[] str = in.readLine().split(" ");
    int t = Integer.parseInt(str[0]);
    int a = Integer.parseInt(str[1]);

    int[] h = new int[n];
    str = in.readLine().split(" ");
    double diffMin = 10000000;
    int diffMinPoint = 0;
    for(int i=0; i<n; i++) {
      h[i] = Integer.parseInt(str[i]);
      double point = t-h[i]*0.006;
      if(diffMin > Math.abs(point-a)) {
        diffMin = Math.abs(point-a);
        diffMinPoint = i+1;
      }
    }
    
    System.out.println(diffMinPoint);
  } main {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    
    String[] str = in.readLine().split(" ");
    int t = Integer.parseInt(str[0]);
    int a = Integer.parseInt(str[1]);

    int[] h = new int[n];
    str = in.readLine().split(" ");
    double diffMin = 10000000;
    int diffMinPoint = 0;
    for(int i=0; i<n; i++) {
      h[i] = Integer.parseInt(str[i]);
      double point = t-h[i]*0.006;
      if(diffMin > Math.abs(point-a)) {
        diffMin = Math.abs(point-a);
        diffMinPoint = i+1;
      }
    }
    
    System.out.println(diffMinPoint);
  } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(in.readLine()); n Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in String[] str = in.readLine().split(" "); str in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " int t = Integer.parseInt(str[0]); t Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int a = Integer.parseInt(str[1]); a Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 int[] h = new int[n]; h new int[n] n str = in.readLine().split(" ") str in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " double diffMin = 10000000; diffMin 10000000 int diffMinPoint = 0; diffMinPoint 0 for(int i=0; i<n; i++) {
      h[i] = Integer.parseInt(str[i]);
      double point = t-h[i]*0.006;
      if(diffMin > Math.abs(point-a)) {
        diffMin = Math.abs(point-a);
        diffMinPoint = i+1;
      }
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      h[i] = Integer.parseInt(str[i]);
      double point = t-h[i]*0.006;
      if(diffMin > Math.abs(point-a)) {
        diffMin = Math.abs(point-a);
        diffMinPoint = i+1;
      }
    } {
      h[i] = Integer.parseInt(str[i]);
      double point = t-h[i]*0.006;
      if(diffMin > Math.abs(point-a)) {
        diffMin = Math.abs(point-a);
        diffMinPoint = i+1;
      }
    } h[i] = Integer.parseInt(str[i]) h[i] h i Integer.parseInt(str[i]) Integer.parseInt Integer str[i] str i double point = t-h[i]*0.006; point t-h[i]*0.006 t h[i]*0.006 h[i] h i 0.006 if(diffMin > Math.abs(point-a)) {
        diffMin = Math.abs(point-a);
        diffMinPoint = i+1;
      } diffMin > Math.abs(point-a) diffMin Math.abs(point-a) Math.abs Math point-a point a {
        diffMin = Math.abs(point-a);
        diffMinPoint = i+1;
      } diffMin = Math.abs(point-a) diffMin Math.abs(point-a) Math.abs Math point-a point a diffMinPoint = i+1 diffMinPoint i+1 i 1 System.out.println(diffMinPoint) System.out.println System.out System System.out diffMinPoint String[] args args public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    
    String[] str = in.readLine().split(" ");
    int t = Integer.parseInt(str[0]);
    int a = Integer.parseInt(str[1]);

    int[] h = new int[n];
    str = in.readLine().split(" ");
    double diffMin = 10000000;
    int diffMinPoint = 0;
    for(int i=0; i<n; i++) {
      h[i] = Integer.parseInt(str[i]);
      double point = t-h[i]*0.006;
      if(diffMin > Math.abs(point-a)) {
        diffMin = Math.abs(point-a);
        diffMinPoint = i+1;
      }
    }
    
    System.out.println(diffMinPoint);
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    
    String[] str = in.readLine().split(" ");
    int t = Integer.parseInt(str[0]);
    int a = Integer.parseInt(str[1]);

    int[] h = new int[n];
    str = in.readLine().split(" ");
    double diffMin = 10000000;
    int diffMinPoint = 0;
    for(int i=0; i<n; i++) {
      h[i] = Integer.parseInt(str[i]);
      double point = t-h[i]*0.006;
      if(diffMin > Math.abs(point-a)) {
        diffMin = Math.abs(point-a);
        diffMinPoint = i+1;
      }
    }
    
    System.out.println(diffMinPoint);
  }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    
    String[] str = in.readLine().split(" ");
    int t = Integer.parseInt(str[0]);
    int a = Integer.parseInt(str[1]);

    int[] h = new int[n];
    str = in.readLine().split(" ");
    double diffMin = 10000000;
    int diffMinPoint = 0;
    for(int i=0; i<n; i++) {
      h[i] = Integer.parseInt(str[i]);
      double point = t-h[i]*0.006;
      if(diffMin > Math.abs(point-a)) {
        diffMin = Math.abs(point-a);
        diffMinPoint = i+1;
      }
    }
    
    System.out.println(diffMinPoint);
  }
}
    