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 leftCount = 0;
    for (int i = 0; i < M; i++) {
      int a = sc.nextInt();
      if (a < X) {
        leftCount++;
      }
    }
    
    System.out.println(M/2 < leftCount ? M - leftCount : leftCount);
  }
} 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 leftCount = 0;
    for (int i = 0; i < M; i++) {
      int a = sc.nextInt();
      if (a < X) {
        leftCount++;
      }
    }
    
    System.out.println(M/2 < leftCount ? M - leftCount : leftCount);
  }
} 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 leftCount = 0;
    for (int i = 0; i < M; i++) {
      int a = sc.nextInt();
      if (a < X) {
        leftCount++;
      }
    }
    
    System.out.println(M/2 < leftCount ? M - leftCount : leftCount);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int M = sc.nextInt();
    int X = sc.nextInt();
    
    int leftCount = 0;
    for (int i = 0; i < M; i++) {
      int a = sc.nextInt();
      if (a < X) {
        leftCount++;
      }
    }
    
    System.out.println(M/2 < leftCount ? M - leftCount : leftCount);
  } 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 leftCount = 0; leftCount 0 for (int i = 0; i < M; i++) {
      int a = sc.nextInt();
      if (a < X) {
        leftCount++;
      }
    } int i = 0; int i = 0; i 0 i < M i M i++ i++ i {
      int a = sc.nextInt();
      if (a < X) {
        leftCount++;
      }
    } {
      int a = sc.nextInt();
      if (a < X) {
        leftCount++;
      }
    } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc if (a < X) {
        leftCount++;
      } a < X a X {
        leftCount++;
      } leftCount++ leftCount System.out.println(M/2 < leftCount ? M - leftCount : leftCount) System.out.println System.out System System.out M/2 < leftCount ? M - leftCount : leftCount M/2 < leftCount M/2 M 2 leftCount M - leftCount M leftCount leftCount 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 leftCount = 0;
    for (int i = 0; i < M; i++) {
      int a = sc.nextInt();
      if (a < X) {
        leftCount++;
      }
    }
    
    System.out.println(M/2 < leftCount ? M - leftCount : leftCount);
  }
} 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 leftCount = 0;
    for (int i = 0; i < M; i++) {
      int a = sc.nextInt();
      if (a < X) {
        leftCount++;
      }
    }
    
    System.out.println(M/2 < leftCount ? M - leftCount : leftCount);
  }
} 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 leftCount = 0;
    for (int i = 0; i < M; i++) {
      int a = sc.nextInt();
      if (a < X) {
        leftCount++;
      }
    }
    
    System.out.println(M/2 < leftCount ? M - leftCount : leftCount);
  }
}