import java.io.*;
import java.util.StringTokenizer;


public class Main {


  private void solve(InputReader in, PrintWriter out) {
    int n = in.nextInt();
    int t = in.nextInt();
    int a = in.nextInt();
    int index = 1;
    double val = 0;
    int[] arr = new int[n];
    for (int i = 0; i < n; i++) {
      arr[i] = in.nextInt();
    }

    double[] res = new double[n];
    for (int i = 0; i < n; i++) {
      res[i] = (t - arr[i] * 0.006);
    }
    val = Math.abs(res[0] - a);
    for (int i = 1; i < n; i++) {
      if (val > Math.abs(res[i] - a)) {
        val = Math.abs(res[i] - a);
        index = i + 1;
      }
    }
    out.println(index);

  }


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

  private void run() throws FileNotFoundException {

    //new FileInputStream(new File("input.txt"))
    //
    try (InputReader in = new InputReader(System.in);
         PrintWriter out = new PrintWriter(System.out)) {
      solve(in, out);
    }
  }


  static class InputReader implements AutoCloseable {
    private BufferedReader reader;
    private StringTokenizer tokenizer;

    InputReader(InputStream stream) {
      reader = new BufferedReader(new InputStreamReader(stream), 32768);
      tokenizer = null;
    }

    String next() {
      while (tokenizer == null || !tokenizer.hasMoreTokens()) {
        try {
          tokenizer = new StringTokenizer(reader.readLine());
        } catch (IOException e) {
          throw new RuntimeException(e);
        }
      }
      return tokenizer.nextToken();
    }

    public int nextInt() {
      return Integer.parseInt(next());
    }

    public long nextLong() {
      return Long.parseLong(next());
    }

    public double nextDouble() {
      return Double.parseDouble(next());
    }

    @Override
    public void close() {
    }
  }

} import java.io.*; io.* java import java.util.StringTokenizer; StringTokenizer java.util public class Main {


  private void solve(InputReader in, PrintWriter out) {
    int n = in.nextInt();
    int t = in.nextInt();
    int a = in.nextInt();
    int index = 1;
    double val = 0;
    int[] arr = new int[n];
    for (int i = 0; i < n; i++) {
      arr[i] = in.nextInt();
    }

    double[] res = new double[n];
    for (int i = 0; i < n; i++) {
      res[i] = (t - arr[i] * 0.006);
    }
    val = Math.abs(res[0] - a);
    for (int i = 1; i < n; i++) {
      if (val > Math.abs(res[i] - a)) {
        val = Math.abs(res[i] - a);
        index = i + 1;
      }
    }
    out.println(index);

  }


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

  private void run() throws FileNotFoundException {

    //new FileInputStream(new File("input.txt"))
    //
    try (InputReader in = new InputReader(System.in);
         PrintWriter out = new PrintWriter(System.out)) {
      solve(in, out);
    }
  }


  static class InputReader implements AutoCloseable {
    private BufferedReader reader;
    private StringTokenizer tokenizer;

    InputReader(InputStream stream) {
      reader = new BufferedReader(new InputStreamReader(stream), 32768);
      tokenizer = null;
    }

    String next() {
      while (tokenizer == null || !tokenizer.hasMoreTokens()) {
        try {
          tokenizer = new StringTokenizer(reader.readLine());
        } catch (IOException e) {
          throw new RuntimeException(e);
        }
      }
      return tokenizer.nextToken();
    }

    public int nextInt() {
      return Integer.parseInt(next());
    }

    public long nextLong() {
      return Long.parseLong(next());
    }

    public double nextDouble() {
      return Double.parseDouble(next());
    }

    @Override
    public void close() {
    }
  }

} Main private void solve(InputReader in, PrintWriter out) {
    int n = in.nextInt();
    int t = in.nextInt();
    int a = in.nextInt();
    int index = 1;
    double val = 0;
    int[] arr = new int[n];
    for (int i = 0; i < n; i++) {
      arr[i] = in.nextInt();
    }

    double[] res = new double[n];
    for (int i = 0; i < n; i++) {
      res[i] = (t - arr[i] * 0.006);
    }
    val = Math.abs(res[0] - a);
    for (int i = 1; i < n; i++) {
      if (val > Math.abs(res[i] - a)) {
        val = Math.abs(res[i] - a);
        index = i + 1;
      }
    }
    out.println(index);

  } solve {
    int n = in.nextInt();
    int t = in.nextInt();
    int a = in.nextInt();
    int index = 1;
    double val = 0;
    int[] arr = new int[n];
    for (int i = 0; i < n; i++) {
      arr[i] = in.nextInt();
    }

    double[] res = new double[n];
    for (int i = 0; i < n; i++) {
      res[i] = (t - arr[i] * 0.006);
    }
    val = Math.abs(res[0] - a);
    for (int i = 1; i < n; i++) {
      if (val > Math.abs(res[i] - a)) {
        val = Math.abs(res[i] - a);
        index = i + 1;
      }
    }
    out.println(index);

  } int n = in.nextInt(); n in.nextInt() in.nextInt in int t = in.nextInt(); t in.nextInt() in.nextInt in int a = in.nextInt(); a in.nextInt() in.nextInt in int index = 1; index 1 double val = 0; val 0 int[] arr = new int[n]; arr new int[n] n for (int i = 0; i < n; i++) {
      arr[i] = in.nextInt();
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      arr[i] = in.nextInt();
    } {
      arr[i] = in.nextInt();
    } arr[i] = in.nextInt() arr[i] arr i in.nextInt() in.nextInt in double[] res = new double[n]; res new double[n] n for (int i = 0; i < n; i++) {
      res[i] = (t - arr[i] * 0.006);
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      res[i] = (t - arr[i] * 0.006);
    } {
      res[i] = (t - arr[i] * 0.006);
    } res[i] = (t - arr[i] * 0.006) res[i] res i (t - arr[i] * 0.006) t arr[i] * 0.006 arr[i] arr i 0.006 val = Math.abs(res[0] - a) val Math.abs(res[0] - a) Math.abs Math res[0] - a res[0] res 0 a for (int i = 1; i < n; i++) {
      if (val > Math.abs(res[i] - a)) {
        val = Math.abs(res[i] - a);
        index = i + 1;
      }
    } int i = 1; int i = 1; i 1 i < n i n i++ i++ i {
      if (val > Math.abs(res[i] - a)) {
        val = Math.abs(res[i] - a);
        index = i + 1;
      }
    } {
      if (val > Math.abs(res[i] - a)) {
        val = Math.abs(res[i] - a);
        index = i + 1;
      }
    } if (val > Math.abs(res[i] - a)) {
        val = Math.abs(res[i] - a);
        index = i + 1;
      } val > Math.abs(res[i] - a) val Math.abs(res[i] - a) Math.abs Math res[i] - a res[i] res i a {
        val = Math.abs(res[i] - a);
        index = i + 1;
      } val = Math.abs(res[i] - a) val Math.abs(res[i] - a) Math.abs Math res[i] - a res[i] res i a index = i + 1 index i + 1 i 1 out.println(index) out.println out index InputReader in in PrintWriter out out public static void main(String[] args) throws FileNotFoundException {
    new Main().run();
  } main {
    new Main().run();
  } new Main().run() new Main().run new Main() String[] args args private void run() throws FileNotFoundException {

    //new FileInputStream(new File("input.txt"))
    //
    try (InputReader in = new InputReader(System.in);
         PrintWriter out = new PrintWriter(System.out)) {
      solve(in, out);
    }
  } run {

    //new FileInputStream(new File("input.txt"))
    //
    try (InputReader in = new InputReader(System.in);
         PrintWriter out = new PrintWriter(System.out)) {
      solve(in, out);
    }
  } try (InputReader in = new InputReader(System.in);
         PrintWriter out = new PrintWriter(System.out)) {
      solve(in, out);
    } {
      solve(in, out);
    } InputReader in = new InputReader(System.in) InputReader in = new InputReader(System.in) new InputReader(System.in) PrintWriter out = new PrintWriter(System.out) PrintWriter out = new PrintWriter(System.out) new PrintWriter(System.out) solve(in, out) solve in out static class InputReader implements AutoCloseable {
    private BufferedReader reader;
    private StringTokenizer tokenizer;

    InputReader(InputStream stream) {
      reader = new BufferedReader(new InputStreamReader(stream), 32768);
      tokenizer = null;
    }

    String next() {
      while (tokenizer == null || !tokenizer.hasMoreTokens()) {
        try {
          tokenizer = new StringTokenizer(reader.readLine());
        } catch (IOException e) {
          throw new RuntimeException(e);
        }
      }
      return tokenizer.nextToken();
    }

    public int nextInt() {
      return Integer.parseInt(next());
    }

    public long nextLong() {
      return Long.parseLong(next());
    }

    public double nextDouble() {
      return Double.parseDouble(next());
    }

    @Override
    public void close() {
    }
  } InputReader private BufferedReader reader; reader private StringTokenizer tokenizer; tokenizer InputReader(InputStream stream) {
      reader = new BufferedReader(new InputStreamReader(stream), 32768);
      tokenizer = null;
    } InputReader {
      reader = new BufferedReader(new InputStreamReader(stream), 32768);
      tokenizer = null;
    } reader = new BufferedReader(new InputStreamReader(stream), 32768) reader new BufferedReader(new InputStreamReader(stream), 32768) tokenizer = null tokenizer null InputStream stream stream String next() {
      while (tokenizer == null || !tokenizer.hasMoreTokens()) {
        try {
          tokenizer = new StringTokenizer(reader.readLine());
        } catch (IOException e) {
          throw new RuntimeException(e);
        }
      }
      return tokenizer.nextToken();
    } next {
      while (tokenizer == null || !tokenizer.hasMoreTokens()) {
        try {
          tokenizer = new StringTokenizer(reader.readLine());
        } catch (IOException e) {
          throw new RuntimeException(e);
        }
      }
      return tokenizer.nextToken();
    } while (tokenizer == null || !tokenizer.hasMoreTokens()) {
        try {
          tokenizer = new StringTokenizer(reader.readLine());
        } catch (IOException e) {
          throw new RuntimeException(e);
        }
      } tokenizer == null || !tokenizer.hasMoreTokens() tokenizer == null tokenizer null !tokenizer.hasMoreTokens() tokenizer.hasMoreTokens() tokenizer.hasMoreTokens tokenizer {
        try {
          tokenizer = new StringTokenizer(reader.readLine());
        } catch (IOException e) {
          throw new RuntimeException(e);
        }
      } try {
          tokenizer = new StringTokenizer(reader.readLine());
        } catch (IOException e) {
          throw new RuntimeException(e);
        } catch (IOException e) {
          throw new RuntimeException(e);
        } IOException e {
          throw new RuntimeException(e);
        } throw new RuntimeException(e); new RuntimeException(e) {
          tokenizer = new StringTokenizer(reader.readLine());
        } tokenizer = new StringTokenizer(reader.readLine()) tokenizer new StringTokenizer(reader.readLine()) return tokenizer.nextToken(); tokenizer.nextToken() tokenizer.nextToken tokenizer public int nextInt() {
      return Integer.parseInt(next());
    } nextInt {
      return Integer.parseInt(next());
    } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next public long nextLong() {
      return Long.parseLong(next());
    } nextLong {
      return Long.parseLong(next());
    } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public double nextDouble() {
      return Double.parseDouble(next());
    } nextDouble {
      return Double.parseDouble(next());
    } return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next @Override
    public void close() {
    } close {
    } AutoCloseable public class Main {


  private void solve(InputReader in, PrintWriter out) {
    int n = in.nextInt();
    int t = in.nextInt();
    int a = in.nextInt();
    int index = 1;
    double val = 0;
    int[] arr = new int[n];
    for (int i = 0; i < n; i++) {
      arr[i] = in.nextInt();
    }

    double[] res = new double[n];
    for (int i = 0; i < n; i++) {
      res[i] = (t - arr[i] * 0.006);
    }
    val = Math.abs(res[0] - a);
    for (int i = 1; i < n; i++) {
      if (val > Math.abs(res[i] - a)) {
        val = Math.abs(res[i] - a);
        index = i + 1;
      }
    }
    out.println(index);

  }


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

  private void run() throws FileNotFoundException {

    //new FileInputStream(new File("input.txt"))
    //
    try (InputReader in = new InputReader(System.in);
         PrintWriter out = new PrintWriter(System.out)) {
      solve(in, out);
    }
  }


  static class InputReader implements AutoCloseable {
    private BufferedReader reader;
    private StringTokenizer tokenizer;

    InputReader(InputStream stream) {
      reader = new BufferedReader(new InputStreamReader(stream), 32768);
      tokenizer = null;
    }

    String next() {
      while (tokenizer == null || !tokenizer.hasMoreTokens()) {
        try {
          tokenizer = new StringTokenizer(reader.readLine());
        } catch (IOException e) {
          throw new RuntimeException(e);
        }
      }
      return tokenizer.nextToken();
    }

    public int nextInt() {
      return Integer.parseInt(next());
    }

    public long nextLong() {
      return Long.parseLong(next());
    }

    public double nextDouble() {
      return Double.parseDouble(next());
    }

    @Override
    public void close() {
    }
  }

} public class Main {


  private void solve(InputReader in, PrintWriter out) {
    int n = in.nextInt();
    int t = in.nextInt();
    int a = in.nextInt();
    int index = 1;
    double val = 0;
    int[] arr = new int[n];
    for (int i = 0; i < n; i++) {
      arr[i] = in.nextInt();
    }

    double[] res = new double[n];
    for (int i = 0; i < n; i++) {
      res[i] = (t - arr[i] * 0.006);
    }
    val = Math.abs(res[0] - a);
    for (int i = 1; i < n; i++) {
      if (val > Math.abs(res[i] - a)) {
        val = Math.abs(res[i] - a);
        index = i + 1;
      }
    }
    out.println(index);

  }


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

  private void run() throws FileNotFoundException {

    //new FileInputStream(new File("input.txt"))
    //
    try (InputReader in = new InputReader(System.in);
         PrintWriter out = new PrintWriter(System.out)) {
      solve(in, out);
    }
  }


  static class InputReader implements AutoCloseable {
    private BufferedReader reader;
    private StringTokenizer tokenizer;

    InputReader(InputStream stream) {
      reader = new BufferedReader(new InputStreamReader(stream), 32768);
      tokenizer = null;
    }

    String next() {
      while (tokenizer == null || !tokenizer.hasMoreTokens()) {
        try {
          tokenizer = new StringTokenizer(reader.readLine());
        } catch (IOException e) {
          throw new RuntimeException(e);
        }
      }
      return tokenizer.nextToken();
    }

    public int nextInt() {
      return Integer.parseInt(next());
    }

    public long nextLong() {
      return Long.parseLong(next());
    }

    public double nextDouble() {
      return Double.parseDouble(next());
    }

    @Override
    public void close() {
    }
  }

} Main
import java.io.*;
import java.util.StringTokenizer;


public class Main {


  private void solve(InputReader in, PrintWriter out) {
    int n = in.nextInt();
    int t = in.nextInt();
    int a = in.nextInt();
    int index = 1;
    double val = 0;
    int[] arr = new int[n];
    for (int i = 0; i < n; i++) {
      arr[i] = in.nextInt();
    }

    double[] res = new double[n];
    for (int i = 0; i < n; i++) {
      res[i] = (t - arr[i] * 0.006);
    }
    val = Math.abs(res[0] - a);
    for (int i = 1; i < n; i++) {
      if (val > Math.abs(res[i] - a)) {
        val = Math.abs(res[i] - a);
        index = i + 1;
      }
    }
    out.println(index);

  }


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

  private void run() throws FileNotFoundException {

    //new FileInputStream(new File("input.txt"))
    //
    try (InputReader in = new InputReader(System.in);
         PrintWriter out = new PrintWriter(System.out)) {
      solve(in, out);
    }
  }


  static class InputReader implements AutoCloseable {
    private BufferedReader reader;
    private StringTokenizer tokenizer;

    InputReader(InputStream stream) {
      reader = new BufferedReader(new InputStreamReader(stream), 32768);
      tokenizer = null;
    }

    String next() {
      while (tokenizer == null || !tokenizer.hasMoreTokens()) {
        try {
          tokenizer = new StringTokenizer(reader.readLine());
        } catch (IOException e) {
          throw new RuntimeException(e);
        }
      }
      return tokenizer.nextToken();
    }

    public int nextInt() {
      return Integer.parseInt(next());
    }

    public long nextLong() {
      return Long.parseLong(next());
    }

    public double nextDouble() {
      return Double.parseDouble(next());
    }

    @Override
    public void close() {
    }
  }

}
