import java.util.Scanner;

public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int t = sc.nextInt();
    int a = sc.nextInt();

    double min = 1000.0f;
    int ans = -1;

    for (int i = 0; i < n; ++i) {
      int h = sc.nextInt();
      double tmp = Math.abs(a - (t - h * 0.006));
      if (tmp < min) {
        min = tmp;
        ans = i + 1;
      }
    }

    System.out.println(ans);
    
    sc.close(); 
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int t = sc.nextInt();
    int a = sc.nextInt();

    double min = 1000.0f;
    int ans = -1;

    for (int i = 0; i < n; ++i) {
      int h = sc.nextInt();
      double tmp = Math.abs(a - (t - h * 0.006));
      if (tmp < min) {
        min = tmp;
        ans = i + 1;
      }
    }

    System.out.println(ans);
    
    sc.close(); 
  }
} Main public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int t = sc.nextInt();
    int a = sc.nextInt();

    double min = 1000.0f;
    int ans = -1;

    for (int i = 0; i < n; ++i) {
      int h = sc.nextInt();
      double tmp = Math.abs(a - (t - h * 0.006));
      if (tmp < min) {
        min = tmp;
        ans = i + 1;
      }
    }

    System.out.println(ans);
    
    sc.close(); 
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int t = sc.nextInt();
    int a = sc.nextInt();

    double min = 1000.0f;
    int ans = -1;

    for (int i = 0; i < n; ++i) {
      int h = sc.nextInt();
      double tmp = Math.abs(a - (t - h * 0.006));
      if (tmp < min) {
        min = tmp;
        ans = i + 1;
      }
    }

    System.out.println(ans);
    
    sc.close(); 
  } Scanner sc = new Scanner(System.in); sc 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 double min = 1000.0f; min 1000.0f int ans = -1; ans -1 1 for (int i = 0; i < n; ++i) {
      int h = sc.nextInt();
      double tmp = Math.abs(a - (t - h * 0.006));
      if (tmp < min) {
        min = tmp;
        ans = i + 1;
      }
    } int i = 0; int i = 0; i 0 i < n i n ++i ++i i {
      int h = sc.nextInt();
      double tmp = Math.abs(a - (t - h * 0.006));
      if (tmp < min) {
        min = tmp;
        ans = i + 1;
      }
    } {
      int h = sc.nextInt();
      double tmp = Math.abs(a - (t - h * 0.006));
      if (tmp < min) {
        min = tmp;
        ans = i + 1;
      }
    } int h = sc.nextInt(); h sc.nextInt() sc.nextInt sc double tmp = Math.abs(a - (t - h * 0.006)); tmp Math.abs(a - (t - h * 0.006)) Math.abs Math a - (t - h * 0.006) a (t - h * 0.006) t h * 0.006 h 0.006 if (tmp < min) {
        min = tmp;
        ans = i + 1;
      } tmp < min tmp min {
        min = tmp;
        ans = i + 1;
      } min = tmp min tmp ans = i + 1 ans i + 1 i 1 System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc String args[] args public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int t = sc.nextInt();
    int a = sc.nextInt();

    double min = 1000.0f;
    int ans = -1;

    for (int i = 0; i < n; ++i) {
      int h = sc.nextInt();
      double tmp = Math.abs(a - (t - h * 0.006));
      if (tmp < min) {
        min = tmp;
        ans = i + 1;
      }
    }

    System.out.println(ans);
    
    sc.close(); 
  }
} public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int t = sc.nextInt();
    int a = sc.nextInt();

    double min = 1000.0f;
    int ans = -1;

    for (int i = 0; i < n; ++i) {
      int h = sc.nextInt();
      double tmp = Math.abs(a - (t - h * 0.006));
      if (tmp < min) {
        min = tmp;
        ans = i + 1;
      }
    }

    System.out.println(ans);
    
    sc.close(); 
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int t = sc.nextInt();
    int a = sc.nextInt();

    double min = 1000.0f;
    int ans = -1;

    for (int i = 0; i < n; ++i) {
      int h = sc.nextInt();
      double tmp = Math.abs(a - (t - h * 0.006));
      if (tmp < min) {
        min = tmp;
        ans = i + 1;
      }
    }

    System.out.println(ans);
    
    sc.close(); 
  }
}
