import java.util.*;

public class Main {
  public static void main(String[] args) {
    try (Scanner sc = new Scanner(System.in)) {
      int N = sc.nextInt();
      int T = sc.nextInt();
      int A = sc.nextInt();
      int[] H = new int[N];
      for ( int j = 0; j < N; j++ ) {
        H[j] = sc.nextInt();
      }
      double h = (T-A)/0.006;
      double diff = Math.abs(H[0] - h);
      int answer = 1;
      if ( N > 1 ) {
        for ( int j = 1; j < N; j++ ) {
          double tempDiff = Math.abs(H[j] - h);
          if ( tempDiff < diff ) {
            diff = tempDiff;
            answer = j + 1;
          }
        }
      }
      System.out.println(answer);
    }
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    try (Scanner sc = new Scanner(System.in)) {
      int N = sc.nextInt();
      int T = sc.nextInt();
      int A = sc.nextInt();
      int[] H = new int[N];
      for ( int j = 0; j < N; j++ ) {
        H[j] = sc.nextInt();
      }
      double h = (T-A)/0.006;
      double diff = Math.abs(H[0] - h);
      int answer = 1;
      if ( N > 1 ) {
        for ( int j = 1; j < N; j++ ) {
          double tempDiff = Math.abs(H[j] - h);
          if ( tempDiff < diff ) {
            diff = tempDiff;
            answer = j + 1;
          }
        }
      }
      System.out.println(answer);
    }
  }
} Main public static void main(String[] args) {
    try (Scanner sc = new Scanner(System.in)) {
      int N = sc.nextInt();
      int T = sc.nextInt();
      int A = sc.nextInt();
      int[] H = new int[N];
      for ( int j = 0; j < N; j++ ) {
        H[j] = sc.nextInt();
      }
      double h = (T-A)/0.006;
      double diff = Math.abs(H[0] - h);
      int answer = 1;
      if ( N > 1 ) {
        for ( int j = 1; j < N; j++ ) {
          double tempDiff = Math.abs(H[j] - h);
          if ( tempDiff < diff ) {
            diff = tempDiff;
            answer = j + 1;
          }
        }
      }
      System.out.println(answer);
    }
  } main {
    try (Scanner sc = new Scanner(System.in)) {
      int N = sc.nextInt();
      int T = sc.nextInt();
      int A = sc.nextInt();
      int[] H = new int[N];
      for ( int j = 0; j < N; j++ ) {
        H[j] = sc.nextInt();
      }
      double h = (T-A)/0.006;
      double diff = Math.abs(H[0] - h);
      int answer = 1;
      if ( N > 1 ) {
        for ( int j = 1; j < N; j++ ) {
          double tempDiff = Math.abs(H[j] - h);
          if ( tempDiff < diff ) {
            diff = tempDiff;
            answer = j + 1;
          }
        }
      }
      System.out.println(answer);
    }
  } try (Scanner sc = new Scanner(System.in)) {
      int N = sc.nextInt();
      int T = sc.nextInt();
      int A = sc.nextInt();
      int[] H = new int[N];
      for ( int j = 0; j < N; j++ ) {
        H[j] = sc.nextInt();
      }
      double h = (T-A)/0.006;
      double diff = Math.abs(H[0] - h);
      int answer = 1;
      if ( N > 1 ) {
        for ( int j = 1; j < N; j++ ) {
          double tempDiff = Math.abs(H[j] - h);
          if ( tempDiff < diff ) {
            diff = tempDiff;
            answer = j + 1;
          }
        }
      }
      System.out.println(answer);
    } {
      int N = sc.nextInt();
      int T = sc.nextInt();
      int A = sc.nextInt();
      int[] H = new int[N];
      for ( int j = 0; j < N; j++ ) {
        H[j] = sc.nextInt();
      }
      double h = (T-A)/0.006;
      double diff = Math.abs(H[0] - h);
      int answer = 1;
      if ( N > 1 ) {
        for ( int j = 1; j < N; j++ ) {
          double tempDiff = Math.abs(H[j] - h);
          if ( tempDiff < diff ) {
            diff = tempDiff;
            answer = j + 1;
          }
        }
      }
      System.out.println(answer);
    } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) 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 int[] H = new int[N]; H new int[N] N for ( int j = 0; j < N; j++ ) {
        H[j] = sc.nextInt();
      } int j = 0; int j = 0; j 0 j < N j N j++ j++ j {
        H[j] = sc.nextInt();
      } {
        H[j] = sc.nextInt();
      } H[j] = sc.nextInt() H[j] H j sc.nextInt() sc.nextInt sc double h = (T-A)/0.006; h (T-A)/0.006 (T-A) T A 0.006 double diff = Math.abs(H[0] - h); diff Math.abs(H[0] - h) Math.abs Math H[0] - h H[0] H 0 h int answer = 1; answer 1 if ( N > 1 ) {
        for ( int j = 1; j < N; j++ ) {
          double tempDiff = Math.abs(H[j] - h);
          if ( tempDiff < diff ) {
            diff = tempDiff;
            answer = j + 1;
          }
        }
      } N > 1 N 1 {
        for ( int j = 1; j < N; j++ ) {
          double tempDiff = Math.abs(H[j] - h);
          if ( tempDiff < diff ) {
            diff = tempDiff;
            answer = j + 1;
          }
        }
      } for ( int j = 1; j < N; j++ ) {
          double tempDiff = Math.abs(H[j] - h);
          if ( tempDiff < diff ) {
            diff = tempDiff;
            answer = j + 1;
          }
        } int j = 1; int j = 1; j 1 j < N j N j++ j++ j {
          double tempDiff = Math.abs(H[j] - h);
          if ( tempDiff < diff ) {
            diff = tempDiff;
            answer = j + 1;
          }
        } {
          double tempDiff = Math.abs(H[j] - h);
          if ( tempDiff < diff ) {
            diff = tempDiff;
            answer = j + 1;
          }
        } double tempDiff = Math.abs(H[j] - h); tempDiff Math.abs(H[j] - h) Math.abs Math H[j] - h H[j] H j h if ( tempDiff < diff ) {
            diff = tempDiff;
            answer = j + 1;
          } tempDiff < diff tempDiff diff {
            diff = tempDiff;
            answer = j + 1;
          } diff = tempDiff diff tempDiff answer = j + 1 answer j + 1 j 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) {
    try (Scanner sc = new Scanner(System.in)) {
      int N = sc.nextInt();
      int T = sc.nextInt();
      int A = sc.nextInt();
      int[] H = new int[N];
      for ( int j = 0; j < N; j++ ) {
        H[j] = sc.nextInt();
      }
      double h = (T-A)/0.006;
      double diff = Math.abs(H[0] - h);
      int answer = 1;
      if ( N > 1 ) {
        for ( int j = 1; j < N; j++ ) {
          double tempDiff = Math.abs(H[j] - h);
          if ( tempDiff < diff ) {
            diff = tempDiff;
            answer = j + 1;
          }
        }
      }
      System.out.println(answer);
    }
  }
} public class Main {
  public static void main(String[] args) {
    try (Scanner sc = new Scanner(System.in)) {
      int N = sc.nextInt();
      int T = sc.nextInt();
      int A = sc.nextInt();
      int[] H = new int[N];
      for ( int j = 0; j < N; j++ ) {
        H[j] = sc.nextInt();
      }
      double h = (T-A)/0.006;
      double diff = Math.abs(H[0] - h);
      int answer = 1;
      if ( N > 1 ) {
        for ( int j = 1; j < N; j++ ) {
          double tempDiff = Math.abs(H[j] - h);
          if ( tempDiff < diff ) {
            diff = tempDiff;
            answer = j + 1;
          }
        }
      }
      System.out.println(answer);
    }
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    try (Scanner sc = new Scanner(System.in)) {
      int N = sc.nextInt();
      int T = sc.nextInt();
      int A = sc.nextInt();
      int[] H = new int[N];
      for ( int j = 0; j < N; j++ ) {
        H[j] = sc.nextInt();
      }
      double h = (T-A)/0.006;
      double diff = Math.abs(H[0] - h);
      int answer = 1;
      if ( N > 1 ) {
        for ( int j = 1; j < N; j++ ) {
          double tempDiff = Math.abs(H[j] - h);
          if ( tempDiff < diff ) {
            diff = tempDiff;
            answer = j + 1;
          }
        }
      }
      System.out.println(answer);
    }
  }
}