Scanf.(Array.(
  let n,h,w = scanf " %d %d %d" @@ fun p q r -> p,q,r in
  print_int (
    init n (fun _ ->
      let a,b = scanf " %d %d" @@ fun p q -> p,q in
      if h<=a && w<=b then 1 else 0) |> fold_left (+) 0)))