import java.util.*;

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();
int H[] = new int[N];
for(int i =0;i<N;i++){
H[i] = sc.nextInt();
}

double min  = H[0];
int minidx = 0;
for(int i = 0;i < N;i++){
double tem = Math.abs(A -(T - H[i]*0.006));
if(min>tem){
min = tem;
minidx = i;
}
}
System.out.println(minidx + 1);

} 
} import java.util.*; util.* java 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();
int H[] = new int[N];
for(int i =0;i<N;i++){
H[i] = sc.nextInt();
}

double min  = H[0];
int minidx = 0;
for(int i = 0;i < N;i++){
double tem = Math.abs(A -(T - H[i]*0.006));
if(min>tem){
min = tem;
minidx = i;
}
}
System.out.println(minidx + 1);

} 
} 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();
int H[] = new int[N];
for(int i =0;i<N;i++){
H[i] = sc.nextInt();
}

double min  = H[0];
int minidx = 0;
for(int i = 0;i < N;i++){
double tem = Math.abs(A -(T - H[i]*0.006));
if(min>tem){
min = tem;
minidx = i;
}
}
System.out.println(minidx + 1);

} main {
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 i =0;i<N;i++){
H[i] = sc.nextInt();
}

double min  = H[0];
int minidx = 0;
for(int i = 0;i < N;i++){
double tem = Math.abs(A -(T - H[i]*0.006));
if(min>tem){
min = tem;
minidx = i;
}
}
System.out.println(minidx + 1);

} 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 int H[] = new int[N]; H new int[N] N for(int i =0;i<N;i++){
H[i] = sc.nextInt();
} int i =0; int i =0; i 0 i<N i N i++ i++ i {
H[i] = sc.nextInt();
} {
H[i] = sc.nextInt();
} H[i] = sc.nextInt() H[i] H i sc.nextInt() sc.nextInt sc double min  = H[0]; min H[0] H 0 int minidx = 0; minidx 0 for(int i = 0;i < N;i++){
double tem = Math.abs(A -(T - H[i]*0.006));
if(min>tem){
min = tem;
minidx = i;
}
} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
double tem = Math.abs(A -(T - H[i]*0.006));
if(min>tem){
min = tem;
minidx = i;
}
} {
double tem = Math.abs(A -(T - H[i]*0.006));
if(min>tem){
min = tem;
minidx = i;
}
} double tem = Math.abs(A -(T - H[i]*0.006)); tem Math.abs(A -(T - H[i]*0.006)) Math.abs Math A -(T - H[i]*0.006) A (T - H[i]*0.006) T H[i]*0.006 H[i] H i 0.006 if(min>tem){
min = tem;
minidx = i;
} min>tem min tem {
min = tem;
minidx = i;
} min = tem min tem minidx = i minidx i System.out.println(minidx + 1) System.out.println System.out System System.out minidx + 1 minidx 1 String[] args args
import java.util.*;

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();
int H[] = new int[N];
for(int i =0;i<N;i++){
H[i] = sc.nextInt();
}

double min  = H[0];
int minidx = 0;
for(int i = 0;i < N;i++){
double tem = Math.abs(A -(T - H[i]*0.006));
if(min>tem){
min = tem;
minidx = i;
}
}
System.out.println(minidx + 1);

} 
}