import java.util.*;

public class Main {
	public static void main(String... args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int x = sc.nextInt();
		int cnt = 0;
		while (sc.hasNext()) {
			if (x < sc.nextInt()) {
				cnt++;
			} 
		}
		System.out.println(m / 2 >= cnt ? cnt : m - cnt);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String... args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int x = sc.nextInt();
		int cnt = 0;
		while (sc.hasNext()) {
			if (x < sc.nextInt()) {
				cnt++;
			} 
		}
		System.out.println(m / 2 >= cnt ? cnt : m - cnt);
	}
} Main public static void main(String... args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int x = sc.nextInt();
		int cnt = 0;
		while (sc.hasNext()) {
			if (x < sc.nextInt()) {
				cnt++;
			} 
		}
		System.out.println(m / 2 >= cnt ? cnt : m - cnt);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int x = sc.nextInt();
		int cnt = 0;
		while (sc.hasNext()) {
			if (x < sc.nextInt()) {
				cnt++;
			} 
		}
		System.out.println(m / 2 >= cnt ? cnt : m - cnt);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int cnt = 0; cnt 0 while (sc.hasNext()) {
			if (x < sc.nextInt()) {
				cnt++;
			} 
		} sc.hasNext() sc.hasNext sc {
			if (x < sc.nextInt()) {
				cnt++;
			} 
		} if (x < sc.nextInt()) {
				cnt++;
			} x < sc.nextInt() x sc.nextInt() sc.nextInt sc {
				cnt++;
			} cnt++ cnt System.out.println(m / 2 >= cnt ? cnt : m - cnt) System.out.println System.out System System.out m / 2 >= cnt ? cnt : m - cnt m / 2 >= cnt m / 2 m 2 cnt cnt m - cnt m cnt String... args args public class Main {
	public static void main(String... args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int x = sc.nextInt();
		int cnt = 0;
		while (sc.hasNext()) {
			if (x < sc.nextInt()) {
				cnt++;
			} 
		}
		System.out.println(m / 2 >= cnt ? cnt : m - cnt);
	}
} public class Main {
	public static void main(String... args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int x = sc.nextInt();
		int cnt = 0;
		while (sc.hasNext()) {
			if (x < sc.nextInt()) {
				cnt++;
			} 
		}
		System.out.println(m / 2 >= cnt ? cnt : m - cnt);
	}
} Main
import java.util.*;

public class Main {
	public static void main(String... args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int x = sc.nextInt();
		int cnt = 0;
		while (sc.hasNext()) {
			if (x < sc.nextInt()) {
				cnt++;
			} 
		}
		System.out.println(m / 2 >= cnt ? cnt : m - cnt);
	}
}