object Main extends App {
  @scala.annotation.tailrec
  def loop(ints: List[Int], x: Int, count: Int): Int = ints match {
    case List() => 0
    case y :: _ if x < y => count.min(ints.length)
    case _ :: ys => loop(ys, x, count + 1)
  }
  val sc = new java.util.Scanner(System.in)
  val n, m, x = sc.nextInt()
  val as = List.fill(m)(sc.nextInt())
  println(loop(as, x, 0))
}
