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

public class Main {

  public static void main(String[] args) {
    new Main().run();
  }

  public void run() {

    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      int n = Integer.parseInt(in.readLine());
      String[] lns = in.readLine().split(" ");
      int t = Integer.parseInt(lns[0]);
      int a = Integer.parseInt(lns[1]);
      int[] h = new int[n];

      String line = in.readLine();
      char regex = ' ';
      boolean isContinue = true;
      for(int i=0, offset=0,next=0; isContinue; offset = ++next) {
        if((next = line.indexOf(regex,offset)) == -1) {
          next = line.length();
          isContinue = false;
        }
        h[i++] = Integer.parseInt(line.substring(offset,next));
      }

      int ans=0;
      long tmp = 0;
      long min = Long.MAX_VALUE;
      for(int i=0; i<n; i++) {
        tmp = Math.abs( a*1000 - (t*1000 - (h[i] * 6)) );
        if(tmp < min ) {
          ans = i+1;
          min = tmp;
        }
      }
      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.PrintWriter; PrintWriter java.io public class Main {

  public static void main(String[] args) {
    new Main().run();
  }

  public void run() {

    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      int n = Integer.parseInt(in.readLine());
      String[] lns = in.readLine().split(" ");
      int t = Integer.parseInt(lns[0]);
      int a = Integer.parseInt(lns[1]);
      int[] h = new int[n];

      String line = in.readLine();
      char regex = ' ';
      boolean isContinue = true;
      for(int i=0, offset=0,next=0; isContinue; offset = ++next) {
        if((next = line.indexOf(regex,offset)) == -1) {
          next = line.length();
          isContinue = false;
        }
        h[i++] = Integer.parseInt(line.substring(offset,next));
      }

      int ans=0;
      long tmp = 0;
      long min = Long.MAX_VALUE;
      for(int i=0; i<n; i++) {
        tmp = Math.abs( a*1000 - (t*1000 - (h[i] * 6)) );
        if(tmp < min ) {
          ans = i+1;
          min = tmp;
        }
      }
      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
} Main public static void main(String[] args) {
    new Main().run();
  } main {
    new Main().run();
  } new Main().run() new Main().run new Main() String[] args args public void run() {

    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      int n = Integer.parseInt(in.readLine());
      String[] lns = in.readLine().split(" ");
      int t = Integer.parseInt(lns[0]);
      int a = Integer.parseInt(lns[1]);
      int[] h = new int[n];

      String line = in.readLine();
      char regex = ' ';
      boolean isContinue = true;
      for(int i=0, offset=0,next=0; isContinue; offset = ++next) {
        if((next = line.indexOf(regex,offset)) == -1) {
          next = line.length();
          isContinue = false;
        }
        h[i++] = Integer.parseInt(line.substring(offset,next));
      }

      int ans=0;
      long tmp = 0;
      long min = Long.MAX_VALUE;
      for(int i=0; i<n; i++) {
        tmp = Math.abs( a*1000 - (t*1000 - (h[i] * 6)) );
        if(tmp < min ) {
          ans = i+1;
          min = tmp;
        }
      }
      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  } run {

    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      int n = Integer.parseInt(in.readLine());
      String[] lns = in.readLine().split(" ");
      int t = Integer.parseInt(lns[0]);
      int a = Integer.parseInt(lns[1]);
      int[] h = new int[n];

      String line = in.readLine();
      char regex = ' ';
      boolean isContinue = true;
      for(int i=0, offset=0,next=0; isContinue; offset = ++next) {
        if((next = line.indexOf(regex,offset)) == -1) {
          next = line.length();
          isContinue = false;
        }
        h[i++] = Integer.parseInt(line.substring(offset,next));
      }

      int ans=0;
      long tmp = 0;
      long min = Long.MAX_VALUE;
      for(int i=0; i<n; i++) {
        tmp = Math.abs( a*1000 - (t*1000 - (h[i] * 6)) );
        if(tmp < min ) {
          ans = i+1;
          min = tmp;
        }
      }
      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  } try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      int n = Integer.parseInt(in.readLine());
      String[] lns = in.readLine().split(" ");
      int t = Integer.parseInt(lns[0]);
      int a = Integer.parseInt(lns[1]);
      int[] h = new int[n];

      String line = in.readLine();
      char regex = ' ';
      boolean isContinue = true;
      for(int i=0, offset=0,next=0; isContinue; offset = ++next) {
        if((next = line.indexOf(regex,offset)) == -1) {
          next = line.length();
          isContinue = false;
        }
        h[i++] = Integer.parseInt(line.substring(offset,next));
      }

      int ans=0;
      long tmp = 0;
      long min = Long.MAX_VALUE;
      for(int i=0; i<n; i++) {
        tmp = Math.abs( a*1000 - (t*1000 - (h[i] * 6)) );
        if(tmp < min ) {
          ans = i+1;
          min = tmp;
        }
      }
      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    } catch(IOException e) {
      System.err.println(e);
    } IOException e {
      System.err.println(e);
    } System.err.println(e) System.err.println System.err System System.err e {

      int n = Integer.parseInt(in.readLine());
      String[] lns = in.readLine().split(" ");
      int t = Integer.parseInt(lns[0]);
      int a = Integer.parseInt(lns[1]);
      int[] h = new int[n];

      String line = in.readLine();
      char regex = ' ';
      boolean isContinue = true;
      for(int i=0, offset=0,next=0; isContinue; offset = ++next) {
        if((next = line.indexOf(regex,offset)) == -1) {
          next = line.length();
          isContinue = false;
        }
        h[i++] = Integer.parseInt(line.substring(offset,next));
      }

      int ans=0;
      long tmp = 0;
      long min = Long.MAX_VALUE;
      for(int i=0; i<n; i++) {
        tmp = Math.abs( a*1000 - (t*1000 - (h[i] * 6)) );
        if(tmp < min ) {
          ans = i+1;
          min = tmp;
        }
      }
      System.out.println(ans);
    } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)) BufferedReader in = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) PrintWriter out = new PrintWriter(System.out) PrintWriter out = new PrintWriter(System.out) new PrintWriter(System.out) int n = Integer.parseInt(in.readLine()); n Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in String[] lns = in.readLine().split(" "); lns in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " int t = Integer.parseInt(lns[0]); t Integer.parseInt(lns[0]) Integer.parseInt Integer lns[0] lns 0 int a = Integer.parseInt(lns[1]); a Integer.parseInt(lns[1]) Integer.parseInt Integer lns[1] lns 1 int[] h = new int[n]; h new int[n] n String line = in.readLine(); line in.readLine() in.readLine in char regex = ' '; regex ' ' boolean isContinue = true; isContinue true for(int i=0, offset=0,next=0; isContinue; offset = ++next) {
        if((next = line.indexOf(regex,offset)) == -1) {
          next = line.length();
          isContinue = false;
        }
        h[i++] = Integer.parseInt(line.substring(offset,next));
      } int i=0, offset=0,next=0; int i=0 i 0 offset=0 offset 0 next=0; next 0 isContinue offset = ++next offset = ++next offset ++next next {
        if((next = line.indexOf(regex,offset)) == -1) {
          next = line.length();
          isContinue = false;
        }
        h[i++] = Integer.parseInt(line.substring(offset,next));
      } {
        if((next = line.indexOf(regex,offset)) == -1) {
          next = line.length();
          isContinue = false;
        }
        h[i++] = Integer.parseInt(line.substring(offset,next));
      } if((next = line.indexOf(regex,offset)) == -1) {
          next = line.length();
          isContinue = false;
        } (next = line.indexOf(regex,offset)) == -1 (next = line.indexOf(regex,offset)) next line.indexOf(regex,offset) line.indexOf line regex offset -1 1 {
          next = line.length();
          isContinue = false;
        } next = line.length() next line.length() line.length line isContinue = false isContinue false h[i++] = Integer.parseInt(line.substring(offset,next)) h[i++] h i++ i Integer.parseInt(line.substring(offset,next)) Integer.parseInt Integer line.substring(offset,next) line.substring line offset next int ans=0; ans 0 long tmp = 0; tmp 0 long min = Long.MAX_VALUE; min Long.MAX_VALUE Long Long.MAX_VALUE for(int i=0; i<n; i++) {
        tmp = Math.abs( a*1000 - (t*1000 - (h[i] * 6)) );
        if(tmp < min ) {
          ans = i+1;
          min = tmp;
        }
      } int i=0; int i=0; i 0 i<n i n i++ i++ i {
        tmp = Math.abs( a*1000 - (t*1000 - (h[i] * 6)) );
        if(tmp < min ) {
          ans = i+1;
          min = tmp;
        }
      } {
        tmp = Math.abs( a*1000 - (t*1000 - (h[i] * 6)) );
        if(tmp < min ) {
          ans = i+1;
          min = tmp;
        }
      } tmp = Math.abs( a*1000 - (t*1000 - (h[i] * 6)) ) tmp Math.abs( a*1000 - (t*1000 - (h[i] * 6)) ) Math.abs Math a*1000 - (t*1000 - (h[i] * 6)) a*1000 a 1000 (t*1000 - (h[i] * 6)) t*1000 t 1000 (h[i] * 6) h[i] h i 6 if(tmp < min ) {
          ans = i+1;
          min = tmp;
        } tmp < min tmp min {
          ans = i+1;
          min = tmp;
        } ans = i+1 ans i+1 i 1 min = tmp min tmp System.out.println(ans) System.out.println System.out System System.out ans public class Main {

  public static void main(String[] args) {
    new Main().run();
  }

  public void run() {

    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      int n = Integer.parseInt(in.readLine());
      String[] lns = in.readLine().split(" ");
      int t = Integer.parseInt(lns[0]);
      int a = Integer.parseInt(lns[1]);
      int[] h = new int[n];

      String line = in.readLine();
      char regex = ' ';
      boolean isContinue = true;
      for(int i=0, offset=0,next=0; isContinue; offset = ++next) {
        if((next = line.indexOf(regex,offset)) == -1) {
          next = line.length();
          isContinue = false;
        }
        h[i++] = Integer.parseInt(line.substring(offset,next));
      }

      int ans=0;
      long tmp = 0;
      long min = Long.MAX_VALUE;
      for(int i=0; i<n; i++) {
        tmp = Math.abs( a*1000 - (t*1000 - (h[i] * 6)) );
        if(tmp < min ) {
          ans = i+1;
          min = tmp;
        }
      }
      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
} public class Main {

  public static void main(String[] args) {
    new Main().run();
  }

  public void run() {

    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      int n = Integer.parseInt(in.readLine());
      String[] lns = in.readLine().split(" ");
      int t = Integer.parseInt(lns[0]);
      int a = Integer.parseInt(lns[1]);
      int[] h = new int[n];

      String line = in.readLine();
      char regex = ' ';
      boolean isContinue = true;
      for(int i=0, offset=0,next=0; isContinue; offset = ++next) {
        if((next = line.indexOf(regex,offset)) == -1) {
          next = line.length();
          isContinue = false;
        }
        h[i++] = Integer.parseInt(line.substring(offset,next));
      }

      int ans=0;
      long tmp = 0;
      long min = Long.MAX_VALUE;
      for(int i=0; i<n; i++) {
        tmp = Math.abs( a*1000 - (t*1000 - (h[i] * 6)) );
        if(tmp < min ) {
          ans = i+1;
          min = tmp;
        }
      }
      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;

public class Main {

  public static void main(String[] args) {
    new Main().run();
  }

  public void run() {

    try(BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out)) {

      int n = Integer.parseInt(in.readLine());
      String[] lns = in.readLine().split(" ");
      int t = Integer.parseInt(lns[0]);
      int a = Integer.parseInt(lns[1]);
      int[] h = new int[n];

      String line = in.readLine();
      char regex = ' ';
      boolean isContinue = true;
      for(int i=0, offset=0,next=0; isContinue; offset = ++next) {
        if((next = line.indexOf(regex,offset)) == -1) {
          next = line.length();
          isContinue = false;
        }
        h[i++] = Integer.parseInt(line.substring(offset,next));
      }

      int ans=0;
      long tmp = 0;
      long min = Long.MAX_VALUE;
      for(int i=0; i<n; i++) {
        tmp = Math.abs( a*1000 - (t*1000 - (h[i] * 6)) );
        if(tmp < min ) {
          ans = i+1;
          min = tmp;
        }
      }
      System.out.println(ans);
    }
    catch(IOException e) {
      System.err.println(e);
    }
  }
}