import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n=sc.nextInt(),m=sc.nextInt(),x=sc.nextInt(),a1=0,a2=0,t;
for(int i=0;i<m;i++)t=sc.nextInt()<x?a1++:a2++;
System.out.println(Math.min(a1, a2));
}
} import java.util.*; util.* java public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n=sc.nextInt(),m=sc.nextInt(),x=sc.nextInt(),a1=0,a2=0,t;
for(int i=0;i<m;i++)t=sc.nextInt()<x?a1++:a2++;
System.out.println(Math.min(a1, a2));
}
} Main public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n=sc.nextInt(),m=sc.nextInt(),x=sc.nextInt(),a1=0,a2=0,t;
for(int i=0;i<m;i++)t=sc.nextInt()<x?a1++:a2++;
System.out.println(Math.min(a1, a2));
} main {
Scanner sc = new Scanner(System.in);
int n=sc.nextInt(),m=sc.nextInt(),x=sc.nextInt(),a1=0,a2=0,t;
for(int i=0;i<m;i++)t=sc.nextInt()<x?a1++:a2++;
System.out.println(Math.min(a1, a2));
} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt() n sc.nextInt() sc.nextInt sc m=sc.nextInt() m sc.nextInt() sc.nextInt sc x=sc.nextInt() x sc.nextInt() sc.nextInt sc a1=0 a1 0 a2=0 a2 0 t; t for(int i=0;i<m;i++)t=sc.nextInt()<x?a1++:a2++; int i=0; int i=0; i 0 i<m i m i++ i++ i t=sc.nextInt()<x?a1++:a2++; t=sc.nextInt()<x?a1++:a2++ t sc.nextInt()<x?a1++:a2++ sc.nextInt()<x sc.nextInt() sc.nextInt sc x a1++ a1 a2++ a2 System.out.println(Math.min(a1, a2)) System.out.println System.out System System.out Math.min(a1, a2) Math.min Math a1 a2 String[] args args public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n=sc.nextInt(),m=sc.nextInt(),x=sc.nextInt(),a1=0,a2=0,t;
for(int i=0;i<m;i++)t=sc.nextInt()<x?a1++:a2++;
System.out.println(Math.min(a1, a2));
}
} public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n=sc.nextInt(),m=sc.nextInt(),x=sc.nextInt(),a1=0,a2=0,t;
for(int i=0;i<m;i++)t=sc.nextInt()<x?a1++:a2++;
System.out.println(Math.min(a1, a2));
}
} Main
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n=sc.nextInt(),m=sc.nextInt(),x=sc.nextInt(),a1=0,a2=0,t;
for(int i=0;i<m;i++)t=sc.nextInt()<x?a1++:a2++;
System.out.println(Math.min(a1, a2));
}
}