
import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  def next(): String = sc.next()
  def nextInt(): Int = Integer.parseInt(next())

  def taskA(): Unit = {
    val n = next()
    println(n.count(_ == '2'))
  }

  def taskB(): Unit = {
    val n, h, w = nextInt()
    val ans = 1.to(n).count { _ =>
      val a, b = nextInt()
      a >= h && b >= w
    }
    println(ans)
  }

  taskB()
}
