import java.util.*;

class Main {
  public static int getPalacePoint(int t, int aveT, List<Integer> hightList) {
    int point = 0;
    double pointT = 9999;
    for(int i = 0; i < hightList.size(); i++) {
      double targetTemperature = (t - (hightList.get(i) * 0.006));
      double diff = targetTemperature - aveT;
      if(diff < 0) {
        diff = -diff;
      }
      if(diff < pointT) {
        point = i;
        pointT = diff;
      }
    }
    return point + 1;
  }
  
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    
    while(scanner.hasNextLine()) {
      int n = Integer.parseInt(scanner.nextLine());
      
      String[] values = scanner.nextLine().split(" ", 0);
      int temperature = Integer.parseInt(values[0]);
      int optTemprerature = Integer.parseInt(values[1]);
      
      String[] hights = scanner.nextLine().split(" ", 0);
      List<Integer> hightList = new ArrayList<Integer>();
      for(String h: hights) {
        hightList.add(Integer.parseInt(h));
      }
      System.out.println(getPalacePoint(temperature, optTemprerature, hightList));
     
    }
  }
} import java.util.*; util.* java class Main {
  public static int getPalacePoint(int t, int aveT, List<Integer> hightList) {
    int point = 0;
    double pointT = 9999;
    for(int i = 0; i < hightList.size(); i++) {
      double targetTemperature = (t - (hightList.get(i) * 0.006));
      double diff = targetTemperature - aveT;
      if(diff < 0) {
        diff = -diff;
      }
      if(diff < pointT) {
        point = i;
        pointT = diff;
      }
    }
    return point + 1;
  }
  
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    
    while(scanner.hasNextLine()) {
      int n = Integer.parseInt(scanner.nextLine());
      
      String[] values = scanner.nextLine().split(" ", 0);
      int temperature = Integer.parseInt(values[0]);
      int optTemprerature = Integer.parseInt(values[1]);
      
      String[] hights = scanner.nextLine().split(" ", 0);
      List<Integer> hightList = new ArrayList<Integer>();
      for(String h: hights) {
        hightList.add(Integer.parseInt(h));
      }
      System.out.println(getPalacePoint(temperature, optTemprerature, hightList));
     
    }
  }
} Main public static int getPalacePoint(int t, int aveT, List<Integer> hightList) {
    int point = 0;
    double pointT = 9999;
    for(int i = 0; i < hightList.size(); i++) {
      double targetTemperature = (t - (hightList.get(i) * 0.006));
      double diff = targetTemperature - aveT;
      if(diff < 0) {
        diff = -diff;
      }
      if(diff < pointT) {
        point = i;
        pointT = diff;
      }
    }
    return point + 1;
  } getPalacePoint {
    int point = 0;
    double pointT = 9999;
    for(int i = 0; i < hightList.size(); i++) {
      double targetTemperature = (t - (hightList.get(i) * 0.006));
      double diff = targetTemperature - aveT;
      if(diff < 0) {
        diff = -diff;
      }
      if(diff < pointT) {
        point = i;
        pointT = diff;
      }
    }
    return point + 1;
  } int point = 0; point 0 double pointT = 9999; pointT 9999 for(int i = 0; i < hightList.size(); i++) {
      double targetTemperature = (t - (hightList.get(i) * 0.006));
      double diff = targetTemperature - aveT;
      if(diff < 0) {
        diff = -diff;
      }
      if(diff < pointT) {
        point = i;
        pointT = diff;
      }
    } int i = 0; int i = 0; i 0 i < hightList.size() i hightList.size() hightList.size hightList i++ i++ i {
      double targetTemperature = (t - (hightList.get(i) * 0.006));
      double diff = targetTemperature - aveT;
      if(diff < 0) {
        diff = -diff;
      }
      if(diff < pointT) {
        point = i;
        pointT = diff;
      }
    } {
      double targetTemperature = (t - (hightList.get(i) * 0.006));
      double diff = targetTemperature - aveT;
      if(diff < 0) {
        diff = -diff;
      }
      if(diff < pointT) {
        point = i;
        pointT = diff;
      }
    } double targetTemperature = (t - (hightList.get(i) * 0.006)); targetTemperature (t - (hightList.get(i) * 0.006)) t (hightList.get(i) * 0.006) hightList.get(i) hightList.get hightList i 0.006 double diff = targetTemperature - aveT; diff targetTemperature - aveT targetTemperature aveT if(diff < 0) {
        diff = -diff;
      } diff < 0 diff 0 {
        diff = -diff;
      } diff = -diff diff -diff diff if(diff < pointT) {
        point = i;
        pointT = diff;
      } diff < pointT diff pointT {
        point = i;
        pointT = diff;
      } point = i point i pointT = diff pointT diff return point + 1; point + 1 point 1 int t t int aveT aveT List<Integer> hightList hightList public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    
    while(scanner.hasNextLine()) {
      int n = Integer.parseInt(scanner.nextLine());
      
      String[] values = scanner.nextLine().split(" ", 0);
      int temperature = Integer.parseInt(values[0]);
      int optTemprerature = Integer.parseInt(values[1]);
      
      String[] hights = scanner.nextLine().split(" ", 0);
      List<Integer> hightList = new ArrayList<Integer>();
      for(String h: hights) {
        hightList.add(Integer.parseInt(h));
      }
      System.out.println(getPalacePoint(temperature, optTemprerature, hightList));
     
    }
  } main {
    Scanner scanner = new Scanner(System.in);
    
    while(scanner.hasNextLine()) {
      int n = Integer.parseInt(scanner.nextLine());
      
      String[] values = scanner.nextLine().split(" ", 0);
      int temperature = Integer.parseInt(values[0]);
      int optTemprerature = Integer.parseInt(values[1]);
      
      String[] hights = scanner.nextLine().split(" ", 0);
      List<Integer> hightList = new ArrayList<Integer>();
      for(String h: hights) {
        hightList.add(Integer.parseInt(h));
      }
      System.out.println(getPalacePoint(temperature, optTemprerature, hightList));
     
    }
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) while(scanner.hasNextLine()) {
      int n = Integer.parseInt(scanner.nextLine());
      
      String[] values = scanner.nextLine().split(" ", 0);
      int temperature = Integer.parseInt(values[0]);
      int optTemprerature = Integer.parseInt(values[1]);
      
      String[] hights = scanner.nextLine().split(" ", 0);
      List<Integer> hightList = new ArrayList<Integer>();
      for(String h: hights) {
        hightList.add(Integer.parseInt(h));
      }
      System.out.println(getPalacePoint(temperature, optTemprerature, hightList));
     
    } scanner.hasNextLine() scanner.hasNextLine scanner {
      int n = Integer.parseInt(scanner.nextLine());
      
      String[] values = scanner.nextLine().split(" ", 0);
      int temperature = Integer.parseInt(values[0]);
      int optTemprerature = Integer.parseInt(values[1]);
      
      String[] hights = scanner.nextLine().split(" ", 0);
      List<Integer> hightList = new ArrayList<Integer>();
      for(String h: hights) {
        hightList.add(Integer.parseInt(h));
      }
      System.out.println(getPalacePoint(temperature, optTemprerature, hightList));
     
    } int n = Integer.parseInt(scanner.nextLine()); n Integer.parseInt(scanner.nextLine()) Integer.parseInt Integer scanner.nextLine() scanner.nextLine scanner String[] values = scanner.nextLine().split(" ", 0); values scanner.nextLine().split(" ", 0) scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " 0 int temperature = Integer.parseInt(values[0]); temperature Integer.parseInt(values[0]) Integer.parseInt Integer values[0] values 0 int optTemprerature = Integer.parseInt(values[1]); optTemprerature Integer.parseInt(values[1]) Integer.parseInt Integer values[1] values 1 String[] hights = scanner.nextLine().split(" ", 0); hights scanner.nextLine().split(" ", 0) scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " 0 List<Integer> hightList = new ArrayList<Integer>(); hightList new ArrayList<Integer>() for(String h: hights) {
        hightList.add(Integer.parseInt(h));
      } String h hights {
        hightList.add(Integer.parseInt(h));
      } {
        hightList.add(Integer.parseInt(h));
      } hightList.add(Integer.parseInt(h)) hightList.add hightList Integer.parseInt(h) Integer.parseInt Integer h System.out.println(getPalacePoint(temperature, optTemprerature, hightList)) System.out.println System.out System System.out getPalacePoint(temperature, optTemprerature, hightList) getPalacePoint temperature optTemprerature hightList String[] args args
import java.util.*;

class Main {
  public static int getPalacePoint(int t, int aveT, List<Integer> hightList) {
    int point = 0;
    double pointT = 9999;
    for(int i = 0; i < hightList.size(); i++) {
      double targetTemperature = (t - (hightList.get(i) * 0.006));
      double diff = targetTemperature - aveT;
      if(diff < 0) {
        diff = -diff;
      }
      if(diff < pointT) {
        point = i;
        pointT = diff;
      }
    }
    return point + 1;
  }
  
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    
    while(scanner.hasNextLine()) {
      int n = Integer.parseInt(scanner.nextLine());
      
      String[] values = scanner.nextLine().split(" ", 0);
      int temperature = Integer.parseInt(values[0]);
      int optTemprerature = Integer.parseInt(values[1]);
      
      String[] hights = scanner.nextLine().split(" ", 0);
      List<Integer> hightList = new ArrayList<Integer>();
      for(String h: hights) {
        hightList.add(Integer.parseInt(h));
      }
      System.out.println(getPalacePoint(temperature, optTemprerature, hightList));
     
    }
  }
}