import scala.io.StdIn

object Main extends App {
  val Array(n, h, w) = StdIn.readLine.split(" ").map(_.toInt)
  val ans = Iterator.continually(StdIn.readLine)
    .take(n)
    .map(_.split(" ").map(_.toInt))
    .count(e => e(0) >= h && e(1) >= w)

  println(ans)
}