##############################################################################
# Python From Scratch
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2024
# Site: https://pythonfromscratch.com
#
# File: listing\chapter 12\12.1513 - No Title.py
# Description: No Title
##############################################################################
def ldc(entry):
found, _, end = pattern_check(
entry,
[partial(sequence, pattern="("),
partial(number, qmin=2, qmax=3),
partial(sequence, pattern=")")])
return (1, 0, end) if found > 0 else (-1, -1, -1)