let n, h, w = Scanf.scanf " %d %d %d" @@ fun a b c -> a, b, c
let ab_s = Array.init n @@ fun _ -> Scanf.scanf " %d %d" @@ fun a b -> a, b
let _ = Array.fold_left (fun c (a, b) -> c + if a >= h && b >= w then 1 else 0) 0 ab_s |> Printf.printf "%d\n"