import java.util.Scanner;

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();//,k=sc.nextInt();
		int sum=0,count=0,flag=0,max=-999999,min=99999;
		int[] array=new int[101];
		//String[] array = new String[n];
		//String s=sc.next();//,t=sc.next();
		for(int i=0;i<m;i++) {
			array[sc.nextInt()]++;
		}
		for(int i=0;i<=x;i++) {
			sum+=array[i];
		}
		for(int i=x;i<n;i++) {
			count+=array[i];
		}

		System.out.println(Math.min(count, sum));
	}
	public static int sample(int n) {
		return n;
	}

} 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(), m = sc.nextInt(),x=sc.nextInt();//,k=sc.nextInt();
		int sum=0,count=0,flag=0,max=-999999,min=99999;
		int[] array=new int[101];
		//String[] array = new String[n];
		//String s=sc.next();//,t=sc.next();
		for(int i=0;i<m;i++) {
			array[sc.nextInt()]++;
		}
		for(int i=0;i<=x;i++) {
			sum+=array[i];
		}
		for(int i=x;i<n;i++) {
			count+=array[i];
		}

		System.out.println(Math.min(count, sum));
	}
	public static int sample(int n) {
		return n;
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), m = sc.nextInt(),x=sc.nextInt();//,k=sc.nextInt();
		int sum=0,count=0,flag=0,max=-999999,min=99999;
		int[] array=new int[101];
		//String[] array = new String[n];
		//String s=sc.next();//,t=sc.next();
		for(int i=0;i<m;i++) {
			array[sc.nextInt()]++;
		}
		for(int i=0;i<=x;i++) {
			sum+=array[i];
		}
		for(int i=x;i<n;i++) {
			count+=array[i];
		}

		System.out.println(Math.min(count, sum));
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), m = sc.nextInt(),x=sc.nextInt();//,k=sc.nextInt();
		int sum=0,count=0,flag=0,max=-999999,min=99999;
		int[] array=new int[101];
		//String[] array = new String[n];
		//String s=sc.next();//,t=sc.next();
		for(int i=0;i<m;i++) {
			array[sc.nextInt()]++;
		}
		for(int i=0;i<=x;i++) {
			sum+=array[i];
		}
		for(int i=x;i<n;i++) {
			count+=array[i];
		}

		System.out.println(Math.min(count, sum));
	} 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 int sum=0 sum 0 count=0 count 0 flag=0 flag 0 max=-999999 max -999999 999999 min=99999; min 99999 int[] array=new int[101]; array new int[101] 101 for(int i=0;i<m;i++) {
			array[sc.nextInt()]++;
		} int i=0; int i=0; i 0 i<m i m i++ i++ i {
			array[sc.nextInt()]++;
		} {
			array[sc.nextInt()]++;
		} array[sc.nextInt()]++ array[sc.nextInt()] array sc.nextInt() sc.nextInt sc for(int i=0;i<=x;i++) {
			sum+=array[i];
		} int i=0; int i=0; i 0 i<=x i x i++ i++ i {
			sum+=array[i];
		} {
			sum+=array[i];
		} sum+=array[i] sum array[i] array i for(int i=x;i<n;i++) {
			count+=array[i];
		} int i=x; int i=x; i x i<n i n i++ i++ i {
			count+=array[i];
		} {
			count+=array[i];
		} count+=array[i] count array[i] array i System.out.println(Math.min(count, sum)) System.out.println System.out System System.out Math.min(count, sum) Math.min Math count sum String[] args args public static int sample(int n) {
		return n;
	} sample {
		return n;
	} return n; n int n n 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();//,k=sc.nextInt();
		int sum=0,count=0,flag=0,max=-999999,min=99999;
		int[] array=new int[101];
		//String[] array = new String[n];
		//String s=sc.next();//,t=sc.next();
		for(int i=0;i<m;i++) {
			array[sc.nextInt()]++;
		}
		for(int i=0;i<=x;i++) {
			sum+=array[i];
		}
		for(int i=x;i<n;i++) {
			count+=array[i];
		}

		System.out.println(Math.min(count, sum));
	}
	public static int sample(int n) {
		return n;
	}

} 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();//,k=sc.nextInt();
		int sum=0,count=0,flag=0,max=-999999,min=99999;
		int[] array=new int[101];
		//String[] array = new String[n];
		//String s=sc.next();//,t=sc.next();
		for(int i=0;i<m;i++) {
			array[sc.nextInt()]++;
		}
		for(int i=0;i<=x;i++) {
			sum+=array[i];
		}
		for(int i=x;i<n;i++) {
			count+=array[i];
		}

		System.out.println(Math.min(count, sum));
	}
	public static int sample(int n) {
		return n;
	}

} Main
import java.util.Scanner;

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();//,k=sc.nextInt();
		int sum=0,count=0,flag=0,max=-999999,min=99999;
		int[] array=new int[101];
		//String[] array = new String[n];
		//String s=sc.next();//,t=sc.next();
		for(int i=0;i<m;i++) {
			array[sc.nextInt()]++;
		}
		for(int i=0;i<=x;i++) {
			sum+=array[i];
		}
		for(int i=x;i<n;i++) {
			count+=array[i];
		}

		System.out.println(Math.min(count, sum));
	}
	public static int sample(int n) {
		return n;
	}

}
