<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __numero_tres_cifras(self, number, indice=None, sing=False):
 """Convierte a texto numeros de tres cifras"""

        number = int(number)

        if number < 30:
            if sing:
                return especiales_apocopado[number]
            else:
                return especiales_masculino[number]

        elif number < 100:
            texto = decenas[number // 10]
            resto = number % 10
            if resto:
                texto += ' y %s' % self.__numero_tres_cifras(resto, None, sing)
            return texto

        if number == 100:
            return 'cien'

        if number < 1000:
            texto = centena_masculino[number // 100]
            resto = number % 100
            if resto:
                texto += ' %s' % self.__numero_tres_cifras(resto, None, sing)
            return texto