import java.util.Scanner;

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

        double[] h = new double[n];
        for(int i = 0; i < n; i++) {
        	h[i] = Math.abs(a - (t - scan.nextDouble() * 6 / 1000));
        }

        int ans = 0;
        double temp = Double.MAX_VALUE;
        for(int i = 0; i < n; i++) {
        	if(temp > h[i]) {
        		temp = h[i];
        		ans = i + 1;
        	}
        }

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

        double[] h = new double[n];
        for(int i = 0; i < n; i++) {
        	h[i] = Math.abs(a - (t - scan.nextDouble() * 6 / 1000));
        }

        int ans = 0;
        double temp = Double.MAX_VALUE;
        for(int i = 0; i < n; i++) {
        	if(temp > h[i]) {
        		temp = h[i];
        		ans = i + 1;
        	}
        }

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

        double[] h = new double[n];
        for(int i = 0; i < n; i++) {
        	h[i] = Math.abs(a - (t - scan.nextDouble() * 6 / 1000));
        }

        int ans = 0;
        double temp = Double.MAX_VALUE;
        for(int i = 0; i < n; i++) {
        	if(temp > h[i]) {
        		temp = h[i];
        		ans = i + 1;
        	}
        }

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

        double[] h = new double[n];
        for(int i = 0; i < n; i++) {
        	h[i] = Math.abs(a - (t - scan.nextDouble() * 6 / 1000));
        }

        int ans = 0;
        double temp = Double.MAX_VALUE;
        for(int i = 0; i < n; i++) {
        	if(temp > h[i]) {
        		temp = h[i];
        		ans = i + 1;
        	}
        }

        System.out.println(ans);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int t = scan.nextInt(); t scan.nextInt() scan.nextInt scan int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan double[] h = new double[n]; h new double[n] n for(int i = 0; i < n; i++) {
        	h[i] = Math.abs(a - (t - scan.nextDouble() * 6 / 1000));
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
        	h[i] = Math.abs(a - (t - scan.nextDouble() * 6 / 1000));
        } {
        	h[i] = Math.abs(a - (t - scan.nextDouble() * 6 / 1000));
        } h[i] = Math.abs(a - (t - scan.nextDouble() * 6 / 1000)) h[i] h i Math.abs(a - (t - scan.nextDouble() * 6 / 1000)) Math.abs Math a - (t - scan.nextDouble() * 6 / 1000) a (t - scan.nextDouble() * 6 / 1000) t scan.nextDouble() * 6 / 1000 scan.nextDouble() * 6 scan.nextDouble() scan.nextDouble scan 6 1000 int ans = 0; ans 0 double temp = Double.MAX_VALUE; temp Double.MAX_VALUE Double Double.MAX_VALUE for(int i = 0; i < n; i++) {
        	if(temp > h[i]) {
        		temp = h[i];
        		ans = i + 1;
        	}
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
        	if(temp > h[i]) {
        		temp = h[i];
        		ans = i + 1;
        	}
        } {
        	if(temp > h[i]) {
        		temp = h[i];
        		ans = i + 1;
        	}
        } if(temp > h[i]) {
        		temp = h[i];
        		ans = i + 1;
        	} temp > h[i] temp h[i] h i {
        		temp = h[i];
        		ans = i + 1;
        	} temp = h[i] temp h[i] h i ans = i + 1 ans i + 1 i 1 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int t = scan.nextInt();
        int a = scan.nextInt();

        double[] h = new double[n];
        for(int i = 0; i < n; i++) {
        	h[i] = Math.abs(a - (t - scan.nextDouble() * 6 / 1000));
        }

        int ans = 0;
        double temp = Double.MAX_VALUE;
        for(int i = 0; i < n; i++) {
        	if(temp > h[i]) {
        		temp = h[i];
        		ans = i + 1;
        	}
        }

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

        double[] h = new double[n];
        for(int i = 0; i < n; i++) {
        	h[i] = Math.abs(a - (t - scan.nextDouble() * 6 / 1000));
        }

        int ans = 0;
        double temp = Double.MAX_VALUE;
        for(int i = 0; i < n; i++) {
        	if(temp > h[i]) {
        		temp = h[i];
        		ans = i + 1;
        	}
        }

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

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

        double[] h = new double[n];
        for(int i = 0; i < n; i++) {
        	h[i] = Math.abs(a - (t - scan.nextDouble() * 6 / 1000));
        }

        int ans = 0;
        double temp = Double.MAX_VALUE;
        for(int i = 0; i < n; i++) {
        	if(temp > h[i]) {
        		temp = h[i];
        		ans = i + 1;
        	}
        }

        System.out.println(ans);
    }
}
