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

